Jora invited guests to his party. of them arrived on time, while were late. To entertain the guests, he tried to play team games with them, but soon realized it was impossible to divide the guests into any number of equal-sized groups with more than one person per group.
Fortunately, he has a backup plan: a cake he wants to share with his friends. The cake is square-shaped, and Jora insists on cutting it into equal-sized square pieces. He wants to reserve one piece for each of the friends who have not yet arrived, and divide the remaining pieces equally among the guests who are present. He does not keep a piece for himself. Can Jora divide the cake in this way?
The input consists of multiple tests. Each test contains a non-negative integer and a positive integer in one line, as described above. Both and are -bit signed integers. The last line contains "-1\ -1" and should not be processed.
For each test, output Yes in a separate line if the cake can be divided as described, or No otherwise.
Пример 1