#include <bits/stdc++.h>
using namespace std;
void solve() {
  int A;
  cin >> A;
  for (int i = 1; i < 9; i++)
    for (int k = 1; i < 9; i++) {
      if (i * k == A) {
        cout << "Yes";
      }
    }
  cout << "No";
}
int main() {
  solve();
  return 0;
}
