a,b,c = list(map(int,input().split()))



if(a<b and b<c):

    print("Yes")

else:

    print("No")
a,b,c = [int(i) for i in input().split()]



if a < b and b < c:

    print("Yes")

else:

    print("No")

a, b, c = list(map(int, input().split()))
if a < b and b < c:
    print("Yes")
else:
    print("No")

a, b, c = [int(i) for i in input().split()]
if a < b and b < c:
    print("Yes")
else:
    print("No")

-a, b, c = list(map(int, input().split())) +a, b, c = [int(i) for i in input().split()]