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