e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

Divisibility by numbers

Divisibility by numbers

Given positive integer n. Is is divisible simultaneously by a and by b?

Input

Three positive integers n, a, b, not greater than 109.

Output

Print "YES" if n is divisible simultaneously by a and by b. Print "NO" otherwise.

Time limit 1 second
Memory limit 128 MiB
Input example #1
12 4 6
Output example #1
YES
Input example #2
10 5 6
Output example #2
NO