Skip to content

Instantly share code, notes, and snippets.

@modos
Created April 25, 2023 05:13
Show Gist options
  • Save modos/0d0bab5d653ee488b316583aa36dcaf2 to your computer and use it in GitHub Desktop.
Save modos/0d0bab5d653ee488b316583aa36dcaf2 to your computer and use it in GitHub Desktop.
رخ زیبا
# a:
s = input()
x1, y1 = s.split()
s = input()
x2, y2 = s.split()
# b:
s = input()
x3, y3 = s.split()
s = input()
x4, y4 = s.split()
count = 0
if x1 == x3 or x1 == x4 or y1 == y3 or y1 == y4:
count = count + 1
if x2 == x3 or x2 == x4 or y2 == y3 or y2 == y4:
count = count + 1
if count == 1:
print("happy")
else:
print("unhappy")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment