#include <bits/stdc++.h>
using namespace std;
signed main() {
  int a;
  bool f = false;
  cin >> a;
  for (int i = 1; i < 10; i++) {
    for (int j = i; j < 10; j++) {
      if (a == i * j) f = true;
    }
  }
  if (f)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return (0);
}
