#include <bits/stdc++.h>
long long int mod = 1000000007;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int arr[] = {2,  3,  4,  5,  6,  8,  12, 30, 32, 33, 34, 35, 36, 38,
               40, 42, 43, 44, 45, 46, 48, 50, 52, 53, 54, 55, 56, 58,
               60, 62, 63, 64, 64, 66, 68, 82, 83, 84, 85, 86, 88};
  int n;
  cin >> n;
  for (int i = 0; i < 41; ++i) {
    if (arr[i] == n) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
