#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using vl = vector<ll>;
using vvl = vector<vl>;
int main() {
  ll n;
  cin >> n;
  bool tf = true;
  for (int i = 0; i < (10); i++) {
    for (int j = 0; j < (10); j++) {
      if (n == i * j) {
        cout << "Yes" << endl;
        tf = false;
        break;
      }
    }
  }
  if (tf) cout << "No" << endl;
}
