#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T& a, T b) {
  return (a = max(a, b)) == b;
}
template <class T>
bool chmin(T& a, T b) {
  return (a = min(a, b)) == b;
}
long long INF = 1e18, MOD = 1e9 + 7;
signed main() {
  cin.tie(0), cout.tie(0), ios::sync_with_stdio(false),
      cout << fixed << setprecision(20);
  ;
  long long a, b, res = 0;
  cin >> a >> b;
  if (a > 9 || b > 9) {
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
}
