Mytsyk and the flowers#63

Mytsyk and the flowers

1 second
128 megabytes
Very easy

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.

Input

Two integers and (0 < m, n \leq 2 \cdot 10^9) are given in a single line.

Output

Print a single integer — the maximum number of pieces of cheese that Mytsyk can get.

Examples

Example 1

Loading
Loading