#include <bits/stdc++.h>
using namespace std;
bool flag = false;
int a[36] = {1,  2,  3,  4,  5,  6,  7,  8,  9,  10, 12, 14, 15, 16, 18, 20,
             21, 24, 25, 27, 28, 30, 32, 35, 36, 40, 45, 48, 49, 64, 81};
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < 32; i++) {
    if (a[i] == n) flag = true;
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
