#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, n;
  cin >> n;
  for (a = 0; a <= 9; a++) {
    for (b = 0; b <= 9; b++) {
      if (a * b == n) {
        cout << "yes" << endl;
        return 0;
      }
    }
  }
  cout << "no" << endl;
}
