#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll n;
  cin >> n;
  ll x;
  for (ll i = 1; i <= 9; i++) {
    if (n % i == 0 && n / i <= 9) x++;
  }
  if (x > 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
