#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  bool exist = false;
  for (int i = (1); i < (10); i++) {
    for (int j = (i); j < (10); j++) {
      if (i * j == x) exist = true;
    }
  }
  if (exist)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
