l = input().split()

if int(l[0]) < int(l[1]) and int(l[1]) < int(l[2]):

    print("Yes")

else:

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

if inp[0] < inp[1] and inp[1] < inp[2]:

    print("Yes")

else:

    print("No")
l = input().split()
if int(l[0]) < int(l[1]) and int(l[1]) < int(l[2]):
    print("Yes")
else:
    print("No")

inp = input().split()
if inp[0] < inp[1] and inp[1] < inp[2]:
    print("Yes")
else:
    print("No")

-l = input().split() -if int(l[0]) < int(l[1]) and int(l[1]) < int(l[2]): +inp = input().split() +if inp[0] < inp[1] and inp[1] < inp[2]: