Consider separately the four types of cubes upon disassembly:
Then count the number of ways in which all cubes of each type may be correctly positioned and oriented.