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

if n == m:

    print('Yes')

else:

    print('No')

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

print(('Yes' if n == m else 'No'))

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

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

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