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