eolymp
bolt
Try our new interface for solving problems
Problems

Divisibility by numbers

Divisibility by numbers

Given positive integer $n$. Is is divisible simultaneously by $a$ and by $b$? \InputFile Three positive integers $n, a, b$, not greater than $10^9$. \OutputFile Print "\textbf{YES}" if $n$ is divisible simultaneously by $a$ and by $b$. Print "\textbf{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