#include <bits/stdc++.h>
using namespace std;
int main() {
  int n1, n2, x, y;
  cin >> n1 >> n2;
  for (int i = 1; i <= n1 + n2; i++) cin >> x >> y;
  if (n1 == n2)
    cout << "Yes";
  else
    cout << "No";
}
