#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[3];
  cin >> a[0] >> a[1] >> a[2];
  int on, tw, th, fo;
  on = tw = th = fo = 0;
  for (int i = 0; i < 3; i++) {
    if (a[i] == 1)
      on++;
    else if (a[i] == 2)
      tw++;
    else if (a[i] == 3)
      th++;
    else if (a[i] == 4)
      fo++;
  }
  if (on > 0 || tw >= 2 || th == 3 || (tw == 1 && fo == 2))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
