<gh_stars>0
x, y, z = map(float, input().split())
if y <= x and x <= z: print('False')
else: print('True')
x, y, z = map(float, input().split())
if y <= x and x <= z: print('False')
else: print('True')