#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, i, b;
  cin >> a;
  for (i = 1; i < 10; i++) {
    if (a % i == 0) {
      if ((a / i > 0) and (a / i < 10)) {
        cout << "Yes" << endl;
        break;
      }
    }
    if (i == 10) {
      cout << "No" << endl;
    }
  }
}
