By Gabriel Duarte, UNIFESO Brazil
One factory produces chocolate bars in cubes and parallelepipeds with the same volume. However, since the machine that produces chocolate cubes has been showing some problems, the owners asked you for help to fix this problems.
Your task is, given the size of the edges of the parallelepipeds chocolate, inform the size the edge of the cube form should have.
The input contains several test cases. The first line of each test case contains three integers A, B and C (1 ≤ A, B, C ≤ 103), indicating the size of the edges of the parallelepiped. The input ends when A = B = C = 0, and should not be processed.
For each input, you must print an integer that should be truncated, representing the size that the edge in cube form should have.
Sample Input | Sample Output |
170 867 253 |
334 |