<image>A large cube consists of 125 small black and white cubes, such that any two adjacent faces of the small cubes have different colors, the corner cubes being black. How many small black cubes are used?