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