Kiểm tra ước số

View as PDF

Submit solution

Points: 0.01
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem type

Viết chương trình nhập vào 2 số nguyên a và b (b khác 0).

Kiểm tra b có phải là ước số của a hay không?

Input

Một dòng duy nhất chứa 2 số nguyên a và b

Output

  1. Nếu b là ước số của a thì in ra "YES"
  2. Ngược lại in ra "NO"

Examples

Input

8 4 

Output

YES

Input

7 5

Output

NO

Comments

Please read the guidelines before commenting.


There are no comments at the moment.