#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
const int inf = 1e9 + 1;
const double eps = 1e-15;
const double EPS = 1e-9;
const double PI = acos(-1.0);
int dx[] = {1, -1, 1, -1, 2, 2, -2, -2};
int dy[] = {2, 2, -2, -2, 1, -1, 1, -1};
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  vector<int> v;
  for (int i = 1; i <= 9; i++) {
    v.push_back(i);
  }
  int n;
  cin >> n;
  for (int i = 1; i < 10; i++) {
    for (int j = 1; j < 10; j++) {
      if (i * j == n) {
        return cout << "Yes", 0;
      }
    }
  }
  cout << "No";
}
