#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int main() {
  int N;
  cin >> N;
  int flag = 0;
  for (long long i = 0; i < 10; i++) {
    if (flag == 0)
      for (long long j = 0; j < 10; j++) {
        if (flag == 0)
          if (i * j == N) {
            cout << "Yes" << endl;
            flag = 1;
          }
        if (i == 9 && j == 9 && flag == 0) cout << "No" << endl;
      }
  }
}
