There is a x * y rectangle consists of x * y numbers of 1 * 1 squares. So, its one diagonal will pass through how many squares?
When the diagonal only passes through one of square's vertex, we say it does not pass through that square.
输入
Input only contain two positive integers x and y (1 <= x, y <= 10, 000).