#include <bits/stdc++.h>
int main() {
  int N, a;
  int flag = 0;
  float b;
  scanf("%d", &N);
  for (int i = 1; i <= 9; i++) {
    a = N % i;
    b = N / i;
    if (a == 0) {
      if (b <= 9) {
        printf("Yes");
        return 0;
      }
    }
  }
  printf("No");
  return 0;
}
