#include <bits/stdc++.h>
using namespace std;
int main() {
  int r, b, i;
  scanf("%d%d", &r, &b);
  for (i = 1; i <= r; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
  }
  for (i = 1; i <= b; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
  }
  if (r == b)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
