Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A = int(input())
- B = int(input())
- C = int(input())
- D = int(input())
- E = int(input())
- if (A <= E and B <= D) or (A <= D and B <= E):
- print('YES')
- elif (A <= E and C <= D) or (C <= E and A <= D):
- print('YES')
- elif (C <= E and B <= D) or (B <= E and C <= D):
- print('YES')
- else:
- print('NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement