Preparando MOJI

Xenolith? Hippodrome?

1000ms 262144K

Description:

Input:

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".

Sample Input:

2 3

Sample Output:

YES

Sample Input:

3 2

Sample Output:

NO

Sample Input:

33 16

Sample Output:

YES

Sample Input:

26 5

Sample Output:

NO

Informação

Codeforces

Provedor Codeforces

Código CF1505D

Tags

*specialnumber theory

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 10:12:22

Relacionados

Nada ainda