wasted
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
55 hrs on record
last played on 31 Jan
22 hrs on record
last played on 25 Jan
3,528 hrs on record
last played on 23 Jan
25 Feb, 2024 @ 7:29am 
+rep good player :steamthumbsup:
New person, Same old mistake 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:
hauNt 21 Jul, 2020 @ 9:54am 
я хз че написать но пусть будет):steamhappy: