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