#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k, i, j;
  cin >> n;
  for (i = 1; i < 10; i++) {
    for (j = 1; j <= 9; j++) {
      if (i * j == n) cout << "Yes" << endl, exit(0);
    }
  }
  cout << "No" << endl;
}
