Read the following passage and solve the questions based on it.
A large cube is dipped into a tub filled with colour. When the cube is taken out it was observed that all its sides are painted. This large cube is now cut into 125 small but identical cubes.
How many of the smaller cubes have exactly three faces painted?