A cube of side 3 cm is painted black on the pair of one opposite surfaces, blue on the pair of another opposite surfaces and red on remaining pair of opposite surfaces. The cube is now divided into smaller cubes of equal side of 1 cm each.
How many smaller cubes have two surfaces painted?