#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  scanf("%d", &a);
  for (int i = 1; i <= 9; ++i)
    for (int j = 1; j <= 9; ++j)
      if (a == i * j) {
        printf("Yes");
        return 0;
      }
  printf("No");
  return 0;
}
