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