#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  map<int, int> mp;
  mp[a]++;
  mp[b]++, mp[c]++;
  if (mp[1]) {
    cout << "YES";
  } else if (mp[2] >= 2) {
    cout << "YES";
  } else if (mp[3] == 3) {
    cout << "YES";
  } else if (mp[4] == 2 && mp[2] == 1) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
