<gh_stars>0
line = input().split()
n = int(line[0])
m = int(line[1])
k = int(line[2])
if(m>=n and k>=n):
    print("YES")
else:
    print("NO")

line = input().split()
n = int(line[0])
m = int(line[1])
k = int(line[2])
if(m>=n and k>=n):
    print("YES")
else:
    print("NO")