#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, i;
  cin >> n;
  for (i = 9; i > 0; i--) {
    a = n / i;
    if (a < 10) {
      cout << "Yes" << endl;
      break;
    }
    if (i == 1) {
      cout << "No" << endl;
    }
  }
  return 0;
}
