#include <bits/stdc++.h>
using namespace std;
int a[3];
void init() {
  for (int i = 0; i < 3; ++i) cin >> a[i];
}
void solve() {
  for (int i = 0; i < 6; ++i) {
    map<int, bool> vis;
    for (int j = 1; j < 1000; ++j) vis[1 + j * a[0]] = true;
    for (int j = 1; j < 1000; ++j) vis[2 + j * a[1]] = true;
    for (int j = 1; j < 1000; ++j) vis[3 + j * a[2]] = true;
    bool t = true;
    for (int j = 4; j < 1000; ++j) t &= vis[j];
    if (t) {
      cout << "YES";
      return;
    }
    next_permutation(a, a + 3);
  }
  cout << "NO";
}
int main() {
  init();
  solve();
}
