#include <bits/stdc++.h>
int main() {
  int n, c = 0;
  scanf("%d", &n);
  for (int i = 1; i <= 9; i++) {
    if (n % i == 0) c = i;
  }
  int x = n / c;
  if (n < 10)
    printf("Yes");
  else if (x < 10)
    printf("Yes");
  else
    printf("No");
  return 0;
}
