A rectangular shoe box measuring 18cm by 8cm by 12cm is filled with 3-cm cubes. What is the most number of cubes that can be fitted into the shoe box?