Circle of choirs#1154

Circle of choirs

1 second
128 megabytes
Very easy

There is a section of choral singing at school. The start of the section always happens in the same way: by the signal of the leader, all participants stand in a circle and each -th person sings a scale for chanting.

The leader of the section noticed that all the members are not always able to stretch their vocal cords. Given and , help him to determine whether or not all the choir participants will take part in the warm-up again.

Input

The input consists of several cases. Each case contains two positive integers and (1 \leq n, m \leq 10^3).

Output

For each test case, print YES if everyone has a chance to sing, otherwise print NO.

Examples

Example 1

Loading
Loading