#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B;
  cin >> A >> B;
  if ((1 <= A && A <= 9) && (1 <= B && B <= 9))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
