Given three numbers, check if one of them equals the average of the other two
X81984
Statement
html
Write a program that reads three integers and checks if there is one of them which equals the average of the other two.
Input
Three integer numbers in one line.
Output
If one of the three numbers equals the average of the other two, prints YES. Otherwise, prints NO.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.