A wooden cube has three of its faces painted red and the other three of its faces painted blue, so that opposite faces have different colours. It is then cut into $27$ identical smaller cubes. How many of these new cubes have at least one face of each colour?