#include <bits/stdc++.h>
int main(void) {
  int number, divisor, answer = 0;
  scanf("%d", &number);
  for (divisor = 1; divisor < 10; divisor++) {
    if (number % divisor == 0 && number / divisor < 10) {
      answer++;
    }
  }
  if (answer != 0) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}
