#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long a[10];
  for (int i = 1; i < 10; i++) a[i] = i;
  vector<int> v;
  for (int i = 1; i < 10; i++) {
    for (int j = i; j < 10; j++) {
      int p = a[i] * a[j];
      v.push_back(p);
    }
  }
  sort(v.begin(), v.end());
  v.erase(unique(v.begin(), v.end()), v.end());
  int t = 0;
  for (int i = 0; i < v.size(); i++) {
    if (v[i] == n) {
      t = 1;
      break;
    }
  }
  if (t)
    cout << "Yes";
  else {
    cout << "No";
  }
  return 0;
}
