#include <bits/stdc++.h>
using namespace std;
const long long N = (long long)(2e5), MOD = 1e9 + 7;
const long long INF = 1e17;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int r, b;
  cin >> r >> b;
  vector<pair<int, int> > rebel;
  vector<pair<int, int> > base;
  for (int i = 0; i < r; i++) {
    int x, y;
    cin >> x >> y;
    rebel.push_back({x, y});
  }
  for (int i = 0; i < r; i++) {
    int x, y;
    cin >> x >> y;
    rebel.push_back({x, y});
  }
  if (r != b)
    cout << "No";
  else {
    cout << "Yes";
  }
}
