#P1505D. Xenolith? Hippodrome?

    ID: 768 Type: RemoteJudge 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>*special problemnumber theory*1800

Xenolith? Hippodrome?

No submission language available for this problem.

Description

The input contains two integers NN, MM (1N1024,2M161 \le N \le 1024, 2 \le M \le 16), separated by a single space.

Output "YES" or "NO".

Input

The input contains two integers NN, MM (1N1024,2M161 \le N \le 1024, 2 \le M \le 16), separated by a single space.

Output

Output "YES" or "NO".

Samples

Sample Input 1

2 3

Sample Output 1

YES

Sample Input 2

3 2

Sample Output 2

NO

Sample Input 3

33 16

Sample Output 3

YES

Sample Input 4

26 5

Sample Output 4

NO