A storage depot is a pyramid with height $30$ and a square base with side length $40$. Determine how many cubical $3\times 3\times 3$ boxes can be stored in this depot if the boxes are always packed so that each of their edges is parallel to either an edge of the base or the altitude of the pyramid.

Let's think step by step and output the final answer within \boxed{}.
user