#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e3 + 5;
const int mod = 1e9 + 7;
int d[maxn];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int a, b, c;
  cin >> a >> b >> c;
  d[a]++, d[b]++, d[c]++;
  if (d[1] >= 1 || d[2] >= 2 || d[3] == 3 || (d[4] == 2 && d[2] == 1)) {
    cout << "YES" << '\n';
  } else
    cout << "NO" << '\n';
}
