Problem:
Score : 100 points

Problem Statement

Two students of AtCoder Kindergarten are fighting over candy packs.

There are three candy packs, each of which contains a, b, and c candies, respectively.

Teacher Evi is trying to distribute the packs between the two students so that each student gets the same number of candies. Determine whether it is possible.

Note that Evi cannot take candies out of the packs, and the whole contents of each pack must be given to one of the students.

Constraints

1 ≦ a, b, c ≦ 100

Input

The input is given from Standard Input in the following format:

a b c

Output

If it is possible to distribute the packs so that each student gets the same number of candies, print Yes. Otherwise, print No.

Sample Input 1

10 30 20

Sample Output 1

Yes

Give the pack with 30 candies to one student, and give the two packs with 10 and 20 candies to the other. Then, each gets 30 candies.

Sample Input 2

30 30 100

Sample Output 2

No

In this case, the student who gets the pack with 100 candies always has more candies than the other.

Note that every pack must be given to one of them.

Sample Input 3

56 25 31

Sample Output 3

Yes

Solution in C# (Mono 4.6.2.0) (judge verdict: Runtime Error)

using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

class Program
{
    public void Proc()
    {
        Reader.IsDebug =　false;
        long[] inpt = Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToArray();
        this.MaxCount = inpt[1];

        Reader.ReadLine().Split(' ').Select(a => long.Parse(a)).ToList().ForEach(a => Pricce.Add(Pricce.Count, a));
        long[] saidai = new long[Pricce.Count];
        long max = 0;
        for (int i = Pricce.Count - 1; i >= 0; i--)
        {
            max = Math.Max(max, Pricce[i]);
            saidai[i] = max;
        }

        long[] from = new long[Pricce.Count];
        long[] to = new long[Pricce.Count];



        long maxRieki = long.MinValue;
        for (int i = 0; i < Pricce.Count - 1; i++)
        {
            if (saidai[i + 1] <= Pricce[i])
            {
                continue;
            }
            long mx = saidai[i + 1];
            long tmp = mx - Pricce[i];
            if (tmp > maxRieki)
            {
                maxRieki = tmp;
            }
            if (tmp >= maxRieki)
            {
                from[i] = maxRieki;
                Pricce.Skip(i + 1).Where(a => a.Value == mx).ToList().ForEach(a => to[a.Key] = maxRieki);
            }
        }

        int ans = Math.Min(from.Count(a => a == maxRieki), to.Count(a => a == maxRieki));
        Console.WriteLine(ans);
    
    }



    private long MaxCount;


    private Dictionary<int, long> Pricce = new Dictionary<int, long>();


    


    public class Reader
    {
        public static bool IsDebug = true;
        private static String PlainInput = @"

10 100
7 10 4 5 9 3 6 8 2 1



";
        private static System.IO.StringReader Sr = null;
        public static string ReadLine()
        {
            if (IsDebug)
            {
                if (Sr == null)
                {
                    Sr = new System.IO.StringReader(PlainInput.Trim());
                }
                return Sr.ReadLine();
            }
            else
            {
                return Console.ReadLine();
            }
        }
    }
    static void Main()
    {
        Program prg = new Program();
        prg.Proc();
    }
}