Skip to content

Instantly share code, notes, and snippets.

@rupython
Created May 20, 2021 13:36
Show Gist options
  • Save rupython/5a3737f684b1a96cf792a934d8cabfc1 to your computer and use it in GitHub Desktop.
Save rupython/5a3737f684b1a96cf792a934d8cabfc1 to your computer and use it in GitHub Desktop.
From: GirdimaN
a = int(input())
b = int(input())
c = int(input())
d = int(input())
if a == c - 1 or a == c + 1 or a == c:
print("YES")
elif b == d - 1 or b == d + 1 or b == d:
print("YES")
else:
print("NO")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment