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