#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  int a, b, c;
  while (cin >> a >> b >> c) {
    bool used[10] = {};
    used[a - 1] = used[b - 1] = used[c - 1] = true;
    int cnt = 0;
    for (int i = 0; i < 10; i++) {
      cnt += (!used[i] && a + b + i + 1 <= 20);
    }
    cout << (cnt * 2 >= 7 ? "YES" : "NO") << endl;
  }

  return 0;
}
