#B2042. Divisibility Check
Divisibility Check
Divisibility Check
Determine whether a given integer n is divisible by both 3 and 5 simultaneously. In other words, check if the number can be divided evenly by both 3 and 5. Output YES
if the condition is satisfied, otherwise output NO
.
Mathematically, you can express the condition as: $$ n \mod 3 = 0 \quad \text{and} \quad n \mod 5 = 0 $$
inputFormat
The input consists of a single line containing an integer n.
outputFormat
Output YES
if n is divisible by both 3 and 5; otherwise, output NO
.
sample
15
YES