#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int R, B, a, b;
  cin >> R >> B;
  for (int i = 0; i < R + B; ++i) cin >> a >> b;
  cout << (R == B ? "Yes\n" : "No\n");
}
