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