a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(min(a, b, c, d))
print(max(a, b, c, d))
abcd = [int(input()) for i in range(4)]
print(min(abcd))
print(max(abcd))
Объяснение:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(min(a, b, c, d))
print(max(a, b, c, d))
abcd = [int(input()) for i in range(4)]
print(min(abcd))
print(max(abcd))
Объяснение: