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