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