#include <bits/stdc++.h>
using namespace std;
struct point {
  int x, y;
  void scan() { scanf("%d%d", &x, &y); }
};
int main() {
  int n, m;
  vector<point> A, B;
  point tmp;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    tmp.scan();
    A.push_back(tmp);
  }
  for (int i = 0; i < m; i++) {
    tmp.scan();
    B.push_back(tmp);
  }
  if (n == m)
    puts("YES");
  else
    puts("NO");
}
