Masha - chocolate, and Misha - bagel...
Masha loves chocolate, and Misha, in turn, loves bagels. Misha and came up with a game in which pleasure could get both.
In a game played by chocolate, which has the form of rectangular tiles, consisting of W segments in horizontal and vertical H cloves. Masha always goes first. For one course are allowed to break a chocolate bar, or any part thereof, received after the first and subsequent moves into 2 parts. Those who are in their course can obtain a minimal slice, the size of 1x1, is won, and him getting all the chocolate, and the loser - a bagel.
If Mary wins, she happily says "Masha - chocolate!", and Misha with no less joy continues its phrase "And Misha - a bagel!", but if Mike wins, no one speaks.
Your task is to determine how many times the game will be pleased with its outcome and Masha and Misha, provided that initially they did not play on bagels, and the chocolate, and each adheres to play an optimal strategy.
Input
The input data consist of several test cases, each of which is located on a separate line and contains two numbers: the size of a regular candy bar W and H (2 ≤ W, H ≤ 200). Input data ending line containing two zeros, and this line is not processed.
Output
Derive a single number - how many times will be spoken and cheerful Machina and Mishina phrases.