#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a;
  bool flag = 0;
  cin >> n;
  for (int i = 2; i < 10; i++) {
    if (n % i == 0) {
      a = n / i;
      if (a < 10) flag = 1;
    }
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
