A - Fourtune Cookies 解説 /

実行時間制限: 2 sec / メモリ制限: 1024 MB

配点 : 200

問題文

すぬけ君は美味しさが A, B, C, D であるような 4 枚のクッキーを持っています。 すぬけ君は 1 枚以上のクッキーを選んで食べます。食べるクッキーの美味しさの総和と、残るクッキーの美味しさの総和が等しくなることはありますか?

制約

  • 与えられる入力は全て整数
  • 1 \leq A,B,C,D \leq 10^{8}

入力

入力は以下の形式で標準入力から与えられる。

A B C D

出力

すぬけ君が食べるクッキーの美味しさの総和と、残るクッキーの美味しさの総和が等しくなることがあるなら Yes、そうでなければ No を出力せよ。


入力例 1

1 3 2 4

出力例 1

Yes
  • すぬけ君が美味しさ 1,4 のクッキーを食べるとき、食べるクッキーの美味しさの総和と、残るクッキーの美味しさの総和が等しくなります。

入力例 2

1 2 4 8

出力例 2

No
  • どのようにしても食べるクッキーの美味しさの総和と、残るクッキーの美味しさの総和が等しくなることはありません。

Score : 200 points

Problem Statement

Snuke has four cookies with deliciousness A, B, C, and D. He will choose one or more from those cookies and eat them. Is it possible that the sum of the deliciousness of the eaten cookies is equal to that of the remaining cookies?

Constraints

  • All values in input are integers.
  • 1 \leq A,B,C,D \leq 10^{8}

Input

Input is given from Standard Input in the following format:

A B C D

Output

If it is possible that the sum of the deliciousness of the eaten cookies is equal to that of the remaining cookies, print Yes; otherwise, print No.


Sample Input 1

1 3 2 4

Sample Output 1

Yes
  • If he eats the cookies with deliciousness 1 and 4, the sum of the deliciousness of the eaten cookies will be equal to that of the remaining cookies.

Sample Input 2

1 2 4 8

Sample Output 2

No
  • Whatever choice he makes, the sum of the deliciousness of the eaten cookies will never be equal to that of the remaining cookies.