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



if a < b < c:

  print ( "Yes" )

else:

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

a, b, c = int(x[0]), int(x[1]), int(x[2])



if a < b < c:

    print("Yes")

else:

    print("No")



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

x = input().split()
a, b, c = int(x[0]), int(x[1]), int(x[2])
if a < b < c:
    print("Yes")
else:
    print("No")

-[a, b, c] = list(map(int, input().split())) +x = input().split() +a, b, c = int(x[0]), int(x[1]), int(x[2])