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 (Python):
print(*sorted(list(map(int,input().split()))))

Solution (Python):
a, b, c = map(int,input().split())
if a > b:
    a, b = b, a
    if b > c:
        b, c = c, b
        if a > b:
            a, b = b, a
else:
    if b > c:
        b, c = c, b
print(a, b, c)

Solution (Python):
X = map(int, raw_input().split())
print " ".join(map(str, sorted(X)))

Solution (Python):
a = [int(i) for i in input().split()]

if 1 <= all(a) <= 10000:
    if a[1] < a[0]:
        a[0], a[1] = a[1], a[0]
    if a[2] < a[0]:
        a[0], a[2] = a[2], a[0]
    if a[2] < a[1]:
        a[1], a[2] = a[2], a[1]
else:
    print("error")

print(str(a[0]) + " " + str(a[1]) + " " + str(a[2]))

Solution (Python):
abc = input().split(' ')
a = int(abc[0])
b = int(abc[1])
c = int(abc[2])
li = sorted([a,b,c])
st = ''
for i in li:
	st += str(i) +' '
print(st[:len(st)-1])

Solution (Python):


def main():

	a,b,c = map(int,raw_input().split())
	for i in xrange(2):
		if a > b:
			a,b = sort(a,b)
		if b > c:
			b,c = sort(b,c)
	print('%d %d %d' % (a,b,c))

def sort(x,y):

	temp = x
	x = y
	y = temp
	return x,y

if __name__ == "__main__":

	main()

Solution (Python):
a, b, c = map(int, input().split())
if a>b:
    a,b = b,a
if a>c:
    a,c = c,a
if b>c:
    b,c = c,b
print(a,b,c)

Solution (Python):
(a,b,c) = map(int, raw_input().split())
abc=sorted([a,b,c])
print abc[0], abc[1], abc[2]