#include <bits/stdc++.h>
int main() {
  int r, b;
  int tx, ty;
  scanf("%d %d", &r, &b);
  for (int i = 0; i < r; ++i) scanf("%d %d", &tx, &ty);
  for (int i = 0; i < b; ++i) scanf("%d %d", &tx, &ty);
  printf("%s\n", (r == b) ? "YES" : "NO");
  return 0;
}
