Competitions
PP1 Week 2 Contest 1
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.
Input example #1
12 4 6
Output example #1
YES
Input example #2
10 5 6
Output example #2
NO