#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e18, minf = 1e18 * (-1);
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int k, b;
  cin >> k >> b;
  int xyr[k][2], xyb[b][2];
  for (long long i = 0; i < k; i++) cin >> xyr[i][0] >> xyr[i][1];
  for (long long i = 0; i < b; i++) cin >> xyb[i][0] >> xyb[i][1];
  if (k != b)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
