#K83077. Equal Distribution of Chocolates
Equal Distribution of Chocolates
Equal Distribution of Chocolates
You are given two non-negative integers \(C\) and \(D\) representing the number of chocolates in two boxes. Your task is to determine whether it is possible to distribute all the chocolates equally among a positive number of children.
The distribution is considered possible if the total number of chocolates is greater than zero. In other words, if \(C + D > 0\), you should print YES
; otherwise, if both \(C\) and \(D\) are zero, print NO
.
inputFormat
The input consists of a single line containing two space-separated integers \(C\) and \(D\) (\(0 \leq C, D \leq 10^9\)).
outputFormat
Output a single line containing either YES
if the chocolates can be distributed, or NO
otherwise.
3 6
YES