Description
Now the contest is beginning at cdutcm, in order to boost morale, SameLin intends to send a bag of walnuts to each group (according to rumors can make up the brain). Suppose there are three teams now, and his requirements are:
1. The number of walnuts in each group must be the same
2. Each group must be able to divide the walnuts equally (of course, it cannot be broken)
3. Try to provide the minimum number of conditions that meet the 1, 2 conditions (saving revolution)
Input
The input contains multiple test cases,each test case contains three positive integers a, b, c, indicating the number of people each group here, separated by spaces (a, b, c < 30)
Output
Output a positive integer representing the number of walnuts per bag.
HINT
If you don't like walnuts, please leave a message on the message board and explain the reward you want.