NM= input ().split()

N= int (NM[0])

M= int (NM[1])

if (N==M):

    print ("Yes")

else:

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

print(('Yes' if a==b else 'No'))
NM = input().split()
N = int(NM[0])
M = int(NM[1])
if N == M:
    print("Yes")
else:
    print("No")

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

-NM = input().split() -N = int(NM[0]) -M = int(NM[1]) -if N == M: -    print("Yes") -else: -    print("No") +a, b = list(map(int, input().split())) +print(("Yes" if a == b else "No"))