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)


if __name__ == '__main__':
	d = input()
	e = d.split(' ')
	a = e[0]
	b = e[1]
	c = e[2]
	if a >= b:
		if b >= c: 
			print (c+" "+b+" "+a)
		elif c >= a:
			print (b+" "+a+" "+c)
		else:
			print (b+" "+c+" "+a)
	else:
		if c >= b:
			print (a+" "+b+" "+c)
		elif a >= c:
			print (c+" "+a+" "+b)
		else:
			print (a+" "+c+" "+b)