The six faces of a three-inch wooden cube are each painted red. The cube is then cut into one-inch cubes along the lines shown in the diagram. How many of the one-inch cubes have red paint on at least one face?