#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a;
  cin >> a;
  for (int i = 0; i < 9; i++) {
    if (a % i == 0 && a / i <= 9 && a / i >= 1) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}
