#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, num = 1, count = 0;
  cin >> n;
  for (i = 1; i <= 9; i++) {
    if (n % i == 0) {
      num = num * i;
      count++;
    }
  }
  if (count == 2 || 3 && num == n) {
    cout << "yes";
  } else {
    cout << "No";
  }
  return 0;
}
