a,b,c=list(map(int,input().split()));print(('YNeos'[c<a or c>b::2]))
a,b,c=list(map(int,input().split()))

print(('NYoe s'[a<=c<=b::2]))
a, b, c = list(map(int, input().split()))
print(("YNeos"[c < a or c > b :: 2]))

a, b, c = list(map(int, input().split()))
print(("NYoe s"[a <= c <= b :: 2]))

-print(("YNeos"[c < a or c > b :: 2])) +print(("NYoe s"[a <= c <= b :: 2]))