#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  bool prime = true;
  int i;
  for (i = 2; i <= a / 2; ++i) {
    if (a % i == 0) {
      prime = false;
      break;
    }
  }
  cin >> a;
  if (abs(a) > 81 || (prime && a > 9)) {
    cout << "No";
  } else
    cout << "Yes";
  return 0;
}
