#include <bits/stdc++.h>
int main() {
  int multi;
  std::cin >> multi;
  if (multi > 81) {
    std::cout << "No" << std::endl;
    return 0;
  }
  for (int i = 1; i < 10; i++) {
    int mod = multi / i;
    int rest = multi % i;
    if (rest == 0 && mod <= 9) {
      std::cout << "Yes" << std::endl;
      return 0;
    }
  }
  std::cout << "No" << std::endl;
}
