#P1837. Swimming

Swimming

Peipei likes swimming. Strange that he always swims from a coner to the counter corner in
the way bellow(that means Peipei must swim to the other site and back, then go to the other site
corner),  as is  shown in Figure  P1

Figure P1    The pool and the way of swimming
Now the problem comes to you is: what is the least distance peipei has to swim ?

Input

There are several test cases, one line for each case. For each line,There are two number of
positive integers of the width and height. Width and Height are between l and 10 000, inclusively.
Input is ended with Width = Height = 0.

Output

Output each least distance in a single line, round the result to the nearest integer, e.g. 1.3
rounds to 1, 1.8 rounds to 2, 123.456 rounds to 123, 123.5 rounds to 124, 124.5 rounds to 125.

Sample Input

1 1
1 2
2 1
0 0

Sample Output

3
6
4

HINT

Source