Chocolate bar#9538

Chocolate bar

1 second
64 megabytes
Very easy

Petryk and Marichka are playing a game with a rectangular chocolate bar of size a \times b. They take turns breaking off exactly one piece of chocolate and eating it. The player who cannot make a move loses the game. Marichka always goes first because Petryk is a gentleman.

Your task is to determine the outcome of the game given the dimensions of the chocolate bar. Output 1 if Petryk will have to buy the next chocolate bar, meaning Marichka wins. Output 0 if Marichka loses.

Input

The input consists of a single line with two natural numbers and , separated by a space. Each number does not exceed .

Output

Print the result of the game.

Examples

Example 1

Loading
Loading