April Fools Day Contest 2021 |
---|

Finished |

The following languages are additionally available for the problems from the contest

April Fools Day Contest 2021:

- Secret 2021

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

*special problem

number theory

*1800

No tag edit access

The problem statement has recently been changed. View the changes.

×
D. Xenolith? Hippodrome?

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputInput

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

Output

Output "YES" or "NO".

Examples

Input

2 3

Output

YES

Input

3 2

Output

NO

Input

33 16

Output

YES

Input

26 5

Output

NO

Codeforces (c) Copyright 2010-2024 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jul/17/2024 12:49:05 (j1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|