t = input().split()

a = int(t[0])

b = int(t[1])

c = int(t[2])

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")
t = input().split()
a = int(t[0])
b = int(t[1])
c = int(t[2])
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")

-t = input().split() -a = int(t[0]) -b = int(t[1]) -c = int(t[2]) -if a < b and b < c: +a, b, c = list(map(int, input().split())) +if (a < b) and (b < c):