Problem:
Sorting Three Numbers

Write a program which reads three integers, and prints them in ascending order.

Input

Three integers separated by a single space are given in a line.

Output

Print the given integers in ascending order in a line. Put a single space between two integers.

Constraints

1 ≤ the three integers ≤ 10000

Sample Input 1

3 8 1

Sample Output 1

1 3 8

Solution in Python3 (judge verdict: Accepted)

i = j = k = 0
n = ''
m = ''
l = ''

line = input()

while line[i] != ' ':
    n = n + line[i]
    i += 1
    
i += 1
while line[i] != ' ':
    l = l + line[i]
    i += 1

while i < len(line):
    m = m + line[i]
    i += 1
    
n = int(n)
l = int(l)
m = int(m)

min = n
if min > l:
	min = l
if min > m:
	min = m

max = n
if max < l:
	max = l
if max < m:
	max = m

if min < n <max:
	cen = n
elif min < l < max:
	cen = l
else: 
	cen = m

print(min,end=' ')
print(cen,end=' ')
print(max)