#include <bits/stdc++.h>
using namespace std;
struct Point {
  int x;
  int y;
};
bool onSegment(Point p, Point q, Point r) {
  if (q.x <= max(p.x, r.x) && q.x >= min(p.x, r.x) && q.y <= max(p.y, r.y) &&
      q.y >= min(p.y, r.y))
    return true;
  return false;
}
int orientation(Point p, Point q, Point r) {
  int val = (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);
  if (val == 0) return 0;
  return (val > 0) ? 1 : 2;
}
bool doIntersect(Point p1, Point q1, Point p2, Point q2) {
  int o1 = orientation(p1, q1, p2);
  int o2 = orientation(p1, q1, q2);
  int o3 = orientation(p2, q2, p1);
  int o4 = orientation(p2, q2, q1);
  if (o1 != o2 && o3 != o4) return true;
  if (o1 == 0 && onSegment(p1, p2, q1)) return true;
  if (o2 == 0 && onSegment(p1, q2, q1)) return true;
  if (o3 == 0 && onSegment(p2, p1, q2)) return true;
  if (o4 == 0 && onSegment(p2, q1, q2)) return true;
  return false;
}
int main() {
  int r, b;
  scanf("%d %d", &r, &b);
  vector<pair<int, int> > R, B;
  for (int i = 1; i <= r; i++) {
    int x, y;
    scanf("%d %d", &x, &y);
    R.push_back({x, y});
  }
  for (int i = 1; i <= b; i++) {
    int x, y;
    scanf("%d %d", &x, &y);
    B.push_back({x, y});
  }
  if (r != b) {
    puts("No");
    return 0;
  }
  for (int i = 0; i < (1 << R.size()); i++) {
    vector<int> result;
    set<int> st;
    for (int j = 0; j < R.size(); j++) {
      int number = i & (1 << j);
      result.push_back(number);
    }
    for (int j = 0; j < result.size(); j++) {
      st.insert(result[j]);
    }
    if (st.size() != r) continue;
    for (int x = 0; x < result.size(); x++) {
      bool can = true;
      Point guard = {R[x].first, R[x].second};
      Point ship = {B[result[x]].first, B[result[x]].second};
      for (int j = 0; j < result.size(); j++) {
        if (j == x) continue;
        Point guard1 = {R[j].first, R[j].second};
        Point ship1 = {B[result[j]].first, B[result[j]].second};
        if (doIntersect(guard, ship, guard1, ship1)) {
          can = 0;
          break;
        }
      }
      if (can) {
        puts("Yes");
        return 0;
      }
      can = true;
    }
  }
  puts("No");
  return 0;
}
