#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; }
int main() {
  int a, b;
  if (a < 10 && b < 10)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
