Smugastyk made a flowerbed shaped like a chessboard of size m \times n, with a flower in each cell. Sometimes, he takes Mytsyk for a walk through the flowerbed (yes, do not be surprised, they really are friends). Mytsyk always starts his journey from the upper left corner and moves to the bottom right corner, collecting flowers along the way. Each time, he chooses a new route, and at the end, Smugastyk gives him a piece of cheese as a reward.
Calculate the maximum number of pieces of cheese Mytsyk can get if, each time, he tries to collect as few flowers as possible. On each route, Mytsyk must collect at least one flower.
Two integers and (0 < m, n \leq 2 \cdot 10^9) are given in a single line.
Print a single integer — the maximum number of pieces of cheese that Mytsyk can get.
Example 1