коровка
D4C   Ukraine
 
 
a1 = int(input())
b1 = int(input())
a2 = int(input())
b2 = int(input())
if (a2 > a1 and a2 < b1 > b2) or ( a2 > a1 and a2 < b1 == b2) or (a2 == a1 and b1 > b2) or (a1 == a2 and b1 == b2):
print(a2,b2)
elif (a2 == a1 and b2 > b1) or (a2 < a1 and b2 == b1) or (a2 < a1 and b2 > b1):
print(a1,b1)
elif (a1 < a2 > b1 and b2 > b1) or (a2 < a1 < b2 and b2 < b1):
if a2 > a1 and b2 > b1:
print(a2,b1)
elif a2 < a1 < b2 and b2 < b1:
print(a2,a1)
elif a1 < a2 == b1 < b2:
print(b1)
elif a2 < a1 == b2 < b1:
print(b2)
else:
print("пустое множество")

Currently Offline
Favorite Game
92
Hours played
20
Achievements
Artwork Showcase
1
1
Recent Activity
3,499 hrs on record
last played on 24 Dec
25 hrs on record
last played on 12 Dec
0.3 hrs on record
last played on 12 Dec
25 Feb @ 7:29am 
+rep good player :steamthumbsup:
Rust Cohle 25 Mar, 2023 @ 12:58pm 
+rep
SunBoy 24 Mar, 2023 @ 12:18am 
+rep
ursus 29 Jul, 2020 @ 9:20am 
ne idite mm s nim
:winter2019neutralyul:
итачи 2014-2023 27 Jul, 2020 @ 5:27am 
+rep
hauNt 21 Jul, 2020 @ 9:54am 
я хз че написать но пусть будет):steamhappy: