#include <bits/stdc++.h>
using namespace std;

int main() {
  int a , b , c;
  cin >> a , b , c;
  if (a == 7) {
    cout << "YES" << endl;
  }
  else if (b == 7) {
    cout << "YES" << endl;
  }
  else if (c == 7) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}
    
