Silvano filled a box with unit cubes so that there was no space unfilled. The box had a volume of 514 cubic units. How many unit cubes were in the box?