n, m = list(map(int, input().split()))



if n == m:

    print("Yes")

else:

    print("No")
n, m = list(map(int, input().split()))

print((['No', 'Yes'][n == m]))
n, m = list(map(int, input().split()))
if n == m:
    print("Yes")
else:
    print("No")

n, m = list(map(int, input().split()))
print((["No", "Yes"][n == m]))

-if n == m: -    print("Yes") -else: -    print("No") +print((["No", "Yes"][n == m]))