#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
int main() {
  int a, b;
  cin >> a >> b;
  if (a < 10 && b < 10) {
    cout << "Yes";
  } else {
    cout << "No";
  }
}
