#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B;
  string S;
  cin >> A >> B;
  cin >> S;
  if (A == 3 && B == 4)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
