#include <iostream>
#include <vector>
#include <list>
#include <algorithm>
#include <string>
#include <stack>
#include <iomanip>
#include <numeric>
#include <queue>
#include <climits>
#include <set>
#include <complex>
#include <cmath>
#include <map>
using namespace std;
using ll = long long;
#define MOD 1000000007
#define INF 1LL << 59

int main()
{
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);
    //cout << fixed << setprecision(7);

    int C1, C2, C3;
    bool arr[11];
    while (cin >> C1 >> C2 >> C3)
    {
        for (int i = 1; i <= 10; ++i)
            arr[i] = false;
        arr[C1] = true;
        arr[C2] = true;
        arr[C3] = true;

        int sum = C1 + C2;

        int cnt = 0;
        for (int i = 1; i <= 10; ++i)
        {
            if (!arr[i] && sum + i <= 20)
                cnt++;
        }
        if (cnt >= 4)
            cout << "YES" << endl;
        else
            cout << "NO" << endl;
    }
    return 0;
}
