#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> Q(81);
  int k = 0;
  bool TF = true;
  for (int i = 1; i < 10; i++) {
    for (int j = 1; j < 10; j++) {
      if (i * j == N) {
        TF = false;
      }
      if (TF == false) {
        break;
      }
    }
    if (TF == false) {
      break;
    }
  }
  if (TF == false) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
