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