#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  int n;
  cin >> n;
  if ((a >= 1 && a <= 9) && (b >= 1 && b <= 9)) {
    n = a * b;
    if (n <= 81) {
      cout << "Yes";
    }
  } else {
    cout << "No";
  }
}
