#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 2 || n == 3 || n == 4 || n == 5 || n == 12 || n == 30 || n == 31 ||
      n == 35 || n == 43 || n == 46 || n == 52 || n == 64 || n == 86)
    cout << "YES";
  else
    cout << "NO";
}
