#include <bits/stdc++.h>
int main() {
  int n;
  bool f = false;
  std::cin >> n;
  for (int x = 1; x <= 9; ++x) {
    for (int y = 1; y <= 9; ++y) {
      if (n == x * y) {
        f = true;
      }
    }
  }
  if (f == true) {
    std::cout << "Yes" << std::endl;
  } else {
    std::cout << "No" << std::endl;
  }
}
