e-olymp
Competitions

PP2. Week 1: March 1 - 7

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