N - Arithmetic Mean

Languages: C, C++, Java, Python, Kotlin, C#
Time & Memory limits: (details)

Given four integer values, determine if one of them is equal to the mean of other two values.

Remember that the mean of two values $a$ and $b$ is $\frac{a + b}{2}$.

Input

The first line of the input contains the four integers $a$, $b$, $c$ and $d$ ($1 \le a, b, c, d \le 100$).

Output

If there exists one value that is equal to the mean of the other two values, then print "Yes" without quotes, otherwise print "No" without quotes.

Sample test(s)

Input
3 10 1 2
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
YES
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
100 100 100 100
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
YES
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
10 21 21 15
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
NO
--- Showing first 30 lines (click "Copy" to get full content) ---