The volume of a cube is 125 cubic centimeters. A rectangular prsim with three different whole-numbers dimensions has the same volume. What are the dimensions of the rectangular prism?