a=float(input())
b=float(input())
c=float(input())
x=float(input())
y=float(input())
if a<=x and b<=y:
print('true')
elif a<=y and b<=x:
print('true')
elif b<=x and c<=y:
print('true')
elif c<=x and b<=y:
print('true')
elif a<=x and c<=y:
print('true')
elif c<=x and a<=y:
print('true')
else:
print('false')