#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename A, size_t N, typename T>
void Fill(A (&array)[N], const T& val) {
  fill((T*)array, (T*)(array + N), val);
}
const int inf = 0x3fffffff;
const long long int INF = 0x3fffffffffffffff;
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  bool f = 1;
  if (a > 9 || b > 9) f = 0;
  printf(f ? "Yes\n" : "No");
  return 0;
}
