私の解答
li = (input().split())
sorted_li = sorted(li)
for ele in sorted_li:
print(ele)
解答例1
S = [0] * 5
values = input().split()
for i in range(5):
S[i] = values[i]
sorted_S = sorted(S)
for s in sorted_S:
print(s)
解答例2
S = [0] * 5
values = input().split()
for i in range(5):
S[i] = values[i]
S.sort()
for s in S:
print(s)