CF1230A.Dawid and Bags of Candies

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Dawid and Bags of Candies

Dawid has four bags of candies. The ii-th of them contains aia_i candies. Also, Dawid has two friends. He wants to give each bag to one of his two friends. Is it possible to distribute the bags in such a way that each friend receives the same amount of candies in total?

Note, that you can't keep bags for yourself or throw them away, each bag should be given to one of the friends.

Input

The only line contains four integers a1a_1, a2a_2, a3a_3 and a4a_4 (1ai1001 \leq a_i \leq 100) — the numbers of candies in each bag.

Output

Output YES if it's possible to give the bags to Dawid's friends so that both friends receive the same amount of candies, or NO otherwise. Each character can be printed in any case (either uppercase or lowercase).

Note

In the first sample test, Dawid can give the first and the third bag to the first friend, and the second and the fourth bag to the second friend. This way, each friend will receive 1212 candies.

In the second sample test, it's impossible to distribute the bags.

Samples

1 7 11 5
YES
7 3 2 5
NO

在线编程 IDE

建议全屏模式获得最佳体验