#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int M, N, Hasil;
  cin >> N;
  bool jarum;
  int i;
  for (i = 1; i < 10; i++) {
    int j;
    for (j = 1; j < 10; j++) {
      int k;
      k = i * j;
      if (k == N) {
        jarum = true;
        cout << "Nilai i*j adalah: " << k << endl;
        break;
      }
    }
  }
  if (jarum) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
