JUST ADD

2.8

24 votes
Problem

You are given three numbers. Is there a way to replace variables A, B and C with these numbers so the equality A + B = C is correct?

Input:

There are three numbers X1, X2 and X3 (1 ≤ Xi ≤ 10^100), each on a separate line of input.

Output:

Output either "YES", if there is a way to substitute variables A, B and C with given numbers so the equality is correct, or "NO" otherwise.

Sample Input:

1

2

3

Output:

YES

Sample Input:

1

2

4

Output

YES

Sample Input:

1

3

5

Output

NO

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?