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