print(('YNeos'[eval(input().replace(' ','>'))::2]))
a,b=input().split();print(('YNeos'[a!=b::2]))
print(("YNeos"[eval(input().replace(" ", ">")) :: 2]))

a, b = input().split()
print(("YNeos"[a != b :: 2]))

-print(("YNeos"[eval(input().replace(" ", ">")) :: 2])) +a, b = input().split() +print(("YNeos"[a != b :: 2]))