#K78632. Even Candy Distribution
Even Candy Distribution
Even Candy Distribution
You are given two integers, \( C \) and \( G \), representing the total number of candies and the number of guests respectively. Determine whether it is possible to distribute all candies among the guests such that each guest receives an even number of candies. The distribution is valid if and only if \( C \) is divisible by \( G \) and the quotient \( \frac{C}{G} \) is an even number.
inputFormat
The input consists of a single line containing two space-separated integers \( C \) and \( G \) (\( 1 \leq C, G \leq 10^9 \)).
outputFormat
Output a single line containing the string YES
if it is possible to distribute the candies evenly such that each guest gets an even number; otherwise, output NO
.
8 4
YES