#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  if (N % 2 == 0 && N / 2 <= 10) {
    cout << "Yes" << endl;
  } else if (N % 4 == 0 && N / 4 < 10) {
    cout << "Yes" << endl;
  } else if (N % 5 == 0 & N / 5 < 10) {
    cout << "Yes" << endl;
  } else if (N % 3 == 0 & N / 3 < 10) {
    cout << "Yes" << endl;
  } else if (N % 6 == 0 && N / 6 < 10) {
    cout << "Yes" << endl;
  } else if (N % 7 == 0 && N / 7 < 10) {
    cout << "Yes" << endl;
  } else if (N % 8 == 0 && N / 8 < 10) {
    cout << "Yes" << endl;
  } else if (N % 9 == 0 && N / 9 < 10) {
    cout << "Yes" << endl;
  } else if (N == 1) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
