100 atcoder#ABC195A. [ABC195A] Health M Death
[ABC195A] Health M Death
Score : points
Problem Statement
Takahashi, the magician, is fighting with a monster.
His magic can defeat a monster whose health is a multiple of . It has no effect on a monster whose health is not a multiple of .
Can his magic defeat a monster whose health is ?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
If Takahashi's magic can defeat the monster, print Yes
; otherwise, print No
.
10 120
Yes
Takahashi's magic can defeat a monster whose health is a multiple of .
is a multiple of , so his magic can defeat the monster with health .
10 125
No
is not a multiple of , so his magic cannot defeat the monster with health .