You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

Problem: a box measuring 36 inches long by 45 inches wide by 18 inches deep is to be filled entirely with identical cubes . no space is to be left unfilled . what is the smallest number of cubes that can accomplish this objective ?
Output:
40