#include <bits/stdc++.h>
using namespace std;
int n, a[10];
int main() {
  a[1] = a[7] = a[9] = 1;
  cin >> n;
  if ((a[n % 10] || (n > 9 && n < 30) || a[n / 10]) && n != 12)
    cout << "NO";
  else
    cout << "YES";
}
