r = input ().split ()

print(("Yes" if r[0] == r[1] else "No"))
l = list(input().split())

N = int(l[0])

M = int(l[1])

if (N == M) :

    print ("Yes")

else :

    print ("No")
r = input().split()
print(("Yes" if r[0] == r[1] else "No"))

l = list(input().split())
N = int(l[0])
M = int(l[1])
if N == M:
    print("Yes")
else:
    print("No")

-r = input().split() -print(("Yes" if r[0] == r[1] else "No")) +l = list(input().split()) +N = int(l[0]) +M = int(l[1]) +if N == M: +    print("Yes") +else: +    print("No")