#include <bits/stdc++.h>
using namespace std;
int a[300005];
bool b[105];
char c[1000005];
long long prime[1000000];
void sieve() {
  for (int i = 2; i < 1000000; i++) prime[i] = 1;
  prime[1] = 0;
  prime[0] = 0;
  for (int i = 2; i * i < 1000000; i++) {
    if (prime[i] == 1) {
      for (int j = i * i; j < 1000000; j += i) {
        prime[j] = 0;
      }
    }
  }
}
int main() {
  ;
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int n;
  cin >> n;
  if (n < 10) {
    cout << "Yes";
    return 0;
  }
  bool check = false;
  for (int i = 1; i <= 9; ++i) {
    for (int j; j <= 9; ++j) {
      if (i * j == n) {
        check = true;
      }
    }
  }
  if (check == true)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
