draligamer7Snakify

king move

Oct 11th, 2019
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. x1 = int(input())
  2. y1 = int(input())
  3. x2 = int(input())
  4. y2 = int(input())
  5. if abs(x1 - x2) <= 1 and abs(y1 - y2) <= 1:
  6. print('YES')
  7. else:
  8. print('NO')
Add Comment
Please, Sign In to add comment