#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using db = double;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
bool IsInt(double a) {
  int b = a / 1;
  if (a == b) {
    return true;
  } else {
    return false;
  }
}
bool coY() { cout << "Yes" << endl; }
bool coN() { cout << "No" << endl; }
const int mod = 1e9 + 7;
ll ans;
int main() {
  cout << setprecision(10);
  int a, b;
  if (a > 9 || b > 9)
    coY();
  else
    coN();
}
