101950: [AtCoder]ABC195 A - Health M Death

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

Description

Score : $100$ points

Problem Statement

Takahashi, the magician, is fighting with a monster.

His magic can defeat a monster whose health is a multiple of $M$. It has no effect on a monster whose health is not a multiple of $M$.

Can his magic defeat a monster whose health is $H$?

Constraints

  • $1 \leq M \leq 1000$
  • $1 \leq H \leq 1000$
  • $M$ and $H$ are integers.

Input

Input is given from Standard Input in the following format:

$M$ $H$

Output

If Takahashi's magic can defeat the monster, print Yes; otherwise, print No.


Sample Input 1

10 120

Sample Output 1

Yes

Takahashi's magic can defeat a monster whose health is a multiple of $10$.

$120$ is a multiple of $10$, so his magic can defeat the monster with health $120$.


Sample Input 2

10 125

Sample Output 2

No

$125$ is not a multiple of $10$, so his magic cannot defeat the monster with health $125$.

Input

题意翻译

输入两个正整数 $a,b$ ,判断 $b$ 是否为 $a$ 的倍数。

加入题单

上一题 下一题 算法标签: