#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using vll = vector<long long>;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  ll a, b;
  cin >> a >> b;
  bool ans = (1 <= a && a <= 9) && (1 <= b && b <= 9);
  cout << (ans ? "Yes" : "No") << endl;
  return 0;
}
