Given three numbers, check if one of them equals the average of the other two

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.

Problem information

Author: PRO1

Generation: 2026-01-25T22:38:52.646Z

© Jutge.org, 2006–2026.
https://jutge.org
