N,M = list(map(int,input().split()))

if N==M:

  print("Yes")

else:

  print("No")
a,b = list(map(int,input().split()))

if a == b:

  print("Yes")

else:

  print("No")
N, M = list(map(int, input().split()))
if N == M:
    print("Yes")
else:
    print("No")

a, b = list(map(int, input().split()))
if a == b:
    print("Yes")
else:
    print("No")

-N, M = list(map(int, input().split())) -if N == M: +a, b = list(map(int, input().split())) +if a == b: