#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n, m, x, y;
  cin >> n >> m;
  if (n != m) {
    cout << "No";
    return 0;
  }
  for (int i = 0; i < 2 * n; i++) {
    cin >> x >> y;
  }
  cout << "Yes";
  return 0;
}
