Advertisement
varyaaas

if

Sep 30th, 2022
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. A = int(input())
  2. B = int(input())
  3. C = int(input())
  4. D = int(input())
  5. E = int(input())
  6. if (A <= E and B <= D) or (A <= D and B <= E):
  7.     print('YES')
  8. elif (A <= E and C <= D) or (C <= E and A <= D):
  9.     print('YES')
  10. elif (C <= E and B <= D) or (B <= E and C <= D):
  11.     print('YES')
  12. else:
  13.     print('NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement