s = eval(input())

a = s.split()

if len(a) != 2:

  print("No")

if a[0] == a[1]:

  print("Yes")

else:

  print("No")
r = input ().split ()

print(("Yes" if r[0] == r[1] else "No"))
s = eval(input())
a = s.split()
if len(a) != 2:
    print("No")
if a[0] == a[1]:
    print("Yes")
else:
    print("No")

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

-s = eval(input()) -a = s.split() -if len(a) != 2: -    print("No") -if a[0] == a[1]: -    print("Yes") -else: -    print("No") +r = input().split() +print(("Yes" if r[0] == r[1] else "No"))