URI Online Judge | 1573

Chocolate Factory

By Gabriel Duarte, UNIFESO BR Brazil

Timelimit: 1

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.

Input

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.

Output

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
452 378 368
5 6 7
2 4 5
0 0 0

334
397
5
3