#include <bits/stdc++.h>
int main() {
  int k1, k2, k3;
  scanf("%d %d %d", &k1, &k2, &k3);
  int arr[3] = {k1, k2, k3};
  int flag = 1;
  int i;
  while (flag) {
    for (i = 1; i < 3; i++) {
      flag = 0;
      if (arr[i] < arr[i - 1]) {
        int temp = arr[i];
        arr[i] = arr[i - 1];
        arr[i - 1] = temp;
        flag = 1;
      }
    }
  }
  int time[100005] = {0};
  int j = 0;
  int k;
  for (i = 1; i < 100000; i++) {
    if (j > 2) break;
    if (time[i] == 0) {
      for (k = i; k < 100000; k += arr[j]) {
        time[k] = 1;
      }
      j++;
    }
  }
  flag = 1;
  for (i = 1; i < 100000; i++) {
    if (time[i] == 0) {
      flag = 0;
      break;
    }
  }
  if (flag == 1)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
