308351: CF1505D. Xenolith? Hippodrome?

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

D. Xenolith? Hippodrome?time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard 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".

ExamplesInput
2 3
Output
YES
Input
3 2
Output
NO
Input
33 16
Output
YES
Input
26 5
Output
NO

Input

暂时还没有翻译

加入题单

上一题 下一题 算法标签: