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