
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  string ret;
  int x = max({a, b, c});
  int y = min({a, b, c});
  if ((x == 7) && (y == 5) && ((a + b + c) - (x + y) == 5)) {
    ret = "YES";
  } else {
    ret = "NO";
  }
  cout << ret << endl;
  return 0;
}
