Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. x = int(input())
  2. y = int(input())
  3. x2 = int(input())
  4. y2 = int(input())
  5. if x == x2 or y == y2:
  6.     print ("YES")
  7. elif (x + 1) == y2 or (x2 + 1) == y:
  8.     print ("YES")
  9. else:
  10.     print ("NO")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement