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

if A <= C and C <= B:

    print('Yes')

else:

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

if a <= c and c <= b:

    print('Yes')

else:

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

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

-A, B, C = list(map(int, input().split())) -if A <= C and C <= B: +a, b, c = list(map(int, input().split())) +if a <= c and c <= b: