#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  int c = 1;
  for (int i = 1; i < 10; i++) {
    for (int j = 1; j < 10; j++) {
      if (i * j == a) {
        cout << "Yes";
        c = 0;
        break;
      }
    }
  }
  if (c == 1) cout << "No";
}
