#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int cnt = 0;
  cin >> N;
  for (int i = 1; i <= 9; i++) {
    for (int j = 1; j <= 9; j++) {
      if (i * j == N) {
        cnt++;
      }
    }
  }
  if (cnt > 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
