#include <bits/stdc++.h>
using namespace std;
priority_queue<long long, vector<long long>, greater<long long>> pq1, pq2;
long long power(long long a, long long b) {
  long long res = 1;
  while (b > 0) {
    res *= a;
    b--;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long rc, bc, i, r1[200005], b1[200005], r2[200005], b2[200005];
  cin >> rc >> bc;
  for (int i = 0; i < rc; ++i) {
    cin >> r1[i] >> r2[i];
  }
  for (int i = 0; i < bc; ++i) {
    cin >> b1[i] >> b2[i];
  }
  if (rc > bc || rc < bc)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
  return 0;
}
