#include <bits/stdc++.h>
using namespace std;
const int N = 1e6;
long long ar[N];
long long dp[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long n, m;
  cin >> n >> m;
  vector<pair<long long, long long> > v1, v2;
  for (long long int i = 0; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    v1.push_back({x, y});
  }
  for (long long int j = 0; j < m; j++) {
    long long x, y;
    cin >> x >> y;
    v2.push_back({x, y});
  }
  sort(v1.begin(), v1.end());
  sort(v2.begin(), v2.end());
  if (n == m) {
    return cout << "Yes", 0;
  } else
    cout << "No";
  return 0;
}
