#include <bits/stdc++.h>
using namespace std;
const long double pi = acos(-1);
const long long md = 1e9 + 7;
long long r, b, i, x, y;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> r >> b;
  for (i = 1; i <= r + b; i++) cin >> x >> y;
  cout << (r == b ? "Yes" : "No") << '\n';
  return 0;
}
