Created
April 25, 2023 05:13
-
-
Save modos/0d0bab5d653ee488b316583aa36dcaf2 to your computer and use it in GitHub Desktop.
رخ زیبا
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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