A,B,C = list(map(int,input().split()))



if A <= C <= B:

    print("Yes")

else:

    print("No")
A,B,C = list(map(int,input().split()))



print(("Yes" if A <= C <= B else "No"))
A, B, C = list(map(int, input().split()))
if A <= C <= B:
    print("Yes")
else:
    print("No")

A, B, C = list(map(int, input().split()))
print(("Yes" if A <= C <= B else "No"))

-if A <= C <= B: -    print("Yes") -else: -    print("No") +print(("Yes" if A <= C <= B else "No"))