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):
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

print(a, b, c)

Solution (Python):
num = list(map(int, input().split()))
num.sort()
print(num[0], num[1], num[2])

Solution (Python):
xs = list(map(int, input().split()))
xs.sort()
print(xs[0], xs[1], xs[2])

Solution (Python):


import sys
import os





lst = list(map(int, input().split()))
lst.sort()
s_lst = list(map(str, lst))
s = ' '.join(s_lst)
print(s)

Solution (Python):


num = sorted(input().rstrip().split(" "))

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

Solution (Python):
x = list(map(int,input().split()))
x.sort()
print(x[0],x[1],x[2])

Solution (Python):
l = [int(i) for i in input().split()]
l.sort()
print(" ".join(map(str,l)))

Solution (Python):
s = input().split()
s.sort()
print(s[0],s[1],s[2])

Solution (Python):
l = list(map(int, input().split()))
l.sort()
print(l[0], l[1], l[2])

Solution (Python):
x = input().split()
x.sort()
for i in range(2):
	print("{0}".format(x[i]), end=' ')
print(x[2])

Solution (Python):
l = list(map(int, input().split()))
l.sort()

print(l[0], l[1], l[2])

Solution (Python):
l = list(map(int, input().split()))
l.sort()
print(l[0], l[1], l[2])

Solution (Python):
x = list(map(int, input().split()))
x.sort()
print(*x)

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

if a > b:
    temp = a
    a = b
    b = temp

if b > c:
    temp = b
    b = c
    c = temp

if a > b:
    temp = a
    a = b
    b = temp

print(str(a) + ' ' + str(b) + ' ' + str(c))

Solution (Python):
l = [str(x) for x in sorted([int(x) for x in input().split()])]
print(" ".join(l))

Solution (Python):
num = list(map(int, input().split()))

num.sort()

print(num[0], num[1], num[2])

Solution (Python):
a, b, c = [int(i) for i in input().split()]
if a > b:
    t = a
    a = b
    b = t
if b > c:
    t = b
    b = c
    c = t
if a > b:
    t = a
    a = b
    b = t
print(a, b, c)

Solution (Python):
l = list(map(int, input().split()))
l.sort()
for i in range(len(l)):
    if i == len(l)-1:
        print(l[i])
    else:
        print(l[i], end = " ")

Solution (Python):



def func():
    try:
        line=input().rstrip()
        numbers=line.split(" ")
        for i,item in enumerate(numbers):
            numbers[i]=int(item)
    except:
        print("input error")
        return -1
    
    numbers.sort()
    
    result=""
    for num in numbers:
        result+=str(num)+" "
    
    print(result.rstrip(" "))

func()

Solution (Python):

s = input().split()
a=int(s[0])
b=int(s[1])
c=int(s[2])
for i in range(2):
    if(a>b):
        temp=a
        a=b
        b=temp
    if(b>c):
        temp=b
        b=c
        c=temp
print (a,b,c)

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

while 1:
	if a > b:
		a,b = b,a
	elif a > c:
		a,c = c,a
	elif b > c:
		b,c = c,b
	else:
		break

print(a,b,c)

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

x = [a,b,c]
x.sort()
print(str(x[0]) + " " + str(x[1]) + " " + str(x[2]))

Solution (Python):
a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)

theArray = [a, b, c]
minimum = min(theArray)
maximum = max(theArray)

newArray = [str(minimum), str(a+b+c-minimum-maximum), str(maximum)]



print(' '.join(newArray))

Solution (Python):
print(' '.join(map(str, sorted(map(int,input().split())))))

Solution (Python):
num = input().split(" ")
n = [int(i) for i in num]
n = sorted(n)
print(n[0], n[1], n[2],sep = " ")

Solution (Python):
x=map(int,(raw_input().split()))
for n in range(len(x)):
	s=sorted(x)
	print s[n],

Solution (Python):
print(*sorted(input().split()))

Solution (Python):
a = map(int,raw_input().split())

a.sort()

print('{0} {1} {2}'.format(a[0],a[1],a[2]))

Solution (Python):
def main(arg):
    arg = str(arg)
    numbers = [int(x)for x in arg.split(" ")]
    numbers = sorted(numbers)
    a,b,c = numbers[0],numbers[1],numbers[2]
    return "{} {} {}".format(a,b,c)


if __name__ == '__main__':
    print(main(input()))

Solution (Python):
def qsort(nums):
    if len(nums) <= 1:
        return nums

    n = nums[0]

    lowers = [x for x in nums if x < n]
    equals = [x for x in nums if x == n]
    uppers = [x for x in nums if x > n]

    return qsort(lowers) + equals + qsort(uppers)

nums = list(map(int, input().split(' ')))

print(' '.join([str(x) for x in qsort(nums)]))

Solution (Python):


li =input().rstrip().split(" ")

lii =list(map(int,li))

lii.sort()

print(" ".join(map(str,lii)))

Solution (Python):
l = map(int, raw_input().split())
l.sort()
print l[0], l[1], l[2]

Solution (Python):
input = map(int, raw_input().split())
input.sort()
print("%d %d %d" % (input[0], input[1], input[2]))

Solution (Python):

L = list(map(int, input().split()))
L.sort()
print(str(L[0] )+ " " + str(L[1]) + " " + str(L[2]))

Solution (Python):
d = [int(x) for x in input().split()]
d.sort()
print('{0} {1} {2}'.format(d[0], d[1], d[2]))

Solution (Python):
l = list(input().split())
print(' '.join(map(str,sorted(l))))

Solution (Python):
import sys

lst = sorted(map(int, sys.stdin.readline().rstrip().split(' ')))
print('{} {} {}'.format(*lst))

Solution (Python):
s = input().split(" ")
nums = list(map(int, s))
for i in range(2):
    for j in range(i+1, 3):
        if nums[i] > nums[j]:
            w = nums[i]
            nums[i] = nums[j]
            nums[j] = w
for i in range(3):
    if i == 2:
        print(nums[i])
    else:
        print(nums[i], end=" ")

Solution (Python):

a, b, c = map(int, input().split())
if a > b:
    t = a
    a = b
    b = t

if b > c:
    t = b
    b = c
    c = t

if a > b:
    t = a
    a = b
    b = t

print(a, b, c)

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):
x = list(map(int, input().split()))
x.sort()
print("{0} {1} {2}".format(x[0],x[1],x[2]))

Solution (Python):
num = input().split(" ")
num[0] = int(num[0])
num[1] = int(num[1])
num[2] = int(num[2])
num.sort()
print(num[0], num[1], num[2])

Solution (Python):
inpts = [int(n) for n in input().split()]
for i in range(2):
    for j in range(2-i):
        if inpts[j] > inpts[j+1]:
            temp = inpts[j]
            inpts[j] = inpts[j+1]
            inpts[j+1] = temp
print(' '.join([str(n) for n in inpts]))

Solution (Python):
l = list(map(int,input().split()))
print(" ".join(map(str,sorted(l))))

Solution (Python):


import sys

l = map(int, raw_input().split())
l.sort()
for i in range(len(l)):
    print l[i],

Solution (Python):
a = [int(i) for i in input().split()]
print(" ".join(map(str,sorted(a))))

Solution (Python):
a = [int(i) for i in input().split()]
a.sort()
print(a[0],a[1],a[2])

Solution (Python):
x = list(map(int, input().split()))
x.sort()
print(x[0], x[1], x[2])

Solution (Python):
a = list(map(int, input().split()))
for i in range(len(a)):
    j = len(a) - 1
    while i < j:
        if a[j] < a[j-1]:
            t = a[j]
            a[j] = a[j-1]
            a[j-1] = t
        j -= 1

for i in range(len(a)):
    if i == len(a) - 1:
        print(a[i])
    else:
        print(a[i], end=" ")

Solution (Python):

l = list(map(lambda x: int(x), input().strip().split()))
l.sort()
s = " ".join(map(lambda x: str(x),l))
print(s)

Solution (Python):


a = sorted([int(i) for i in input().split()])

for i in range(len(a)):
  print(str(a[i]), end = ' ' if i != len(a)-1 else '\n')

Solution (Python):
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)

Solution (Python):
list = [int(i) for i in input().split()]
print(' '.join([str(i) for i in sorted(list)]))

Solution (Python):
List = [int(i) for i in input().split()]
print(' '.join([str(i) for i in sorted(List)]))

Solution (Python):
L = [int(i) for i in input().split()]
print(' '.join([str(i) for i in sorted(L)]))

Solution (Python):
n = list(map(int,input().split()))
n.sort()
print(n[0],n[1],n[2],sep=" ")

Solution (Python):
L = [int(i) for i in input().split()]
print(' '.join([str(i) for i in sorted(L)]))

Solution (Python):
n = list(map(int,input().split()))
n.sort()
print(n[0],n[1],n[2],sep=" ")

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

if b<=c:
    if a<=b:
        print(a,b,c)
    elif a<=c:
        print(b,a,c)
    else:
        print(b,c,a)
elif a<=c<=b:
    print(a,c,b)
elif c<=a<=b:
    print(c,a,b)
else:
    print(c,b,a)

Solution (Python):
nums = [int(i) for i in input().split()]
sort_nums = sorted(nums)
nums_str = map(str,sort_nums)
print(' '.join(nums_str))

Solution (Python):
print(' '.join(map(str, sorted(map(int, input().split())))))

Solution (Python):
input_data = [int(i) for i in input().split()]
input_data.sort()
print(input_data[0],input_data[1],input_data[2])

Solution (Python):
a = list(map(int,input().split()))
a.sort()
print(str(a[0])+" "+str(a[1])+" "+str(a[2]))

Solution (Python):
x=input().split()
y=list(map(int,x))
a=y[0]
b=y[1]
c=y[2]
d=sorted([a,b,c])
print("{0} {1} {2}".format(d[0],d[1],d[2]))

Solution (Python):
s=input().rstrip().split(' ')
s.sort()
print(s[0],s[1],s[2])

Solution (Python):
a,b,c= map(int, input().split())
i=0
while i<3:
 if a>b:
     x=a
     a=b
     b=x
 elif b>c:
     x=b
     b=c
     c=x
 i=i+1

print (a,b,c)

Solution (Python):
res = list(map(int, input().split()))
res.sort(reverse=False)
print('{0[0]} {0[1]} {0[2]}'.format(res))

Solution (Python):
x = input().split()
i = list(map(int,x))
 
i.sort()
print('{} {} {}'.format(i[0],i[1],i[2]))

Solution (Python):
a,b,c=map(int,input().split())
d=[a,b,c]
d.sort()
print("{0} {1} {2}".format(d[0],d[1],d[2]))

Solution (Python):
a,b,c=map(int,input().split())
d=sorted([a,b,c])
print("{0} {1} {2}".format(d[0],d[1],d[2]))

Solution (Python):
a,b,c=map(int,input().split())
d=sorted([a,b,c])
print ("{0} {1} {2}".format(d[0],d[1],d[2]))

Solution (Python):
x=input().split()
y=list(map(int,x))
z=sorted(y)
print("{0} {1} {2}".format(z[0],z[1],z[2]))

Solution (Python):
nums = [int(i) for i in input().split()]
nums_sort = sorted(nums)
nums_str = map(str, nums_sort)
print (' '.join(nums_str))

Solution (Python):
[a, b, c] = map(int, input().split())

min = min(a,b,c)
max = max(a,b,c)
nokori = (a+b+c) - min - max

print(min,nokori,max)

Solution (Python):
print(" ".join([str(i) for i in sorted([int(w) for w in input().split()])]))

Solution (Python):
print(' '.join([str(i) for i in sorted(list(map(int, input().split())))]))

Solution (Python):
n = list(map(int, input().split()))
n.sort()
print (n[0],n[1],n[2])

Solution (Python):
arr = [int(i) for i in input().split()]
print(*sorted(arr))

Solution (Python):
print(*sorted([int(i) for i in input().split()]))

Solution (Python):
a, b, c = sorted(input().split())
print(a, b, c)

Solution (Python):
a, b, c = sorted(input().split())
print(a, b, c)

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

if b<a:
	a,b=b,a

if c<a:
	a,c=c,a

if c<b:
	b,c=c,b

print("{0} {1} {2}".format(a,b,c))

Solution (Python):
l = list(map(int, input().split()))
ans = []

for i in range(10001):
    for x in l: 
        if i == x:
            ans.append(i)

print ("%d %d %d"%(ans[0], ans[1], ans[2]))

Solution (Python):


a = [int(x) for x in input().strip().split(' ')]
a.sort()
print(' '.join([str(x) for x in a]))

Solution (Python):
a, b, c = sorted(input().split())
print(a, b, c)

Solution (Python):
i = list(map(int, input().split()))
i.sort()
print(i[0], i[1], i[2], sep=' ')

Solution (Python):
i = list(map(int, input().split()))
i.sort()
print(i[0], i[1], i[2], sep=' ')

Solution (Python):
i = list(map(int, input().split()))
i.sort()
print(i[0], i[1], i[2], sep=' ')

Solution (Python):
a,b,c = sorted([int(i) for i in input().split()])
print(a,b,c)

Solution (Python):
a=[int(i) for i in input().split()]
a.sort()
print("{0} {1} {2}".format(a[0],a[1],a[2]))

Solution (Python):
input_line = input()
l = input_line.split()
l.sort()
print(l[0],l[1],l[2])

Solution (Python):
abc = input ()
num_abc = abc.split()
num_abc.sort()
print(num_abc[0],num_abc[1],num_abc[2])

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

if a <= b <= c:
	print(a, b, c)
elif a <= c <= b:
	print(a, c, b)
elif b <= a <= c:
	print(b, a, c)
elif b <= c <= a:
	print(b, c, a)
elif c <= a <= b:
	print(c, a, b)
elif c <= b <= a:
	print(c, b, a)

Solution (Python):
a, b, c = map(int, input().split())
[x, y, z] = sorted([a, b, c])
print(x, y, z)

Solution (Python):
import re

given = input("")

result = re.search(r"([0-9]+)\s([0-9]+)\s([0-9]+)", given)

a = int(result.group(1))
b = int(result.group(2))
c = int(result.group(3))

numlist= [a,b,c]
numlist.sort()

print(numlist[0], numlist[1], numlist[2])

Solution (Python):
data = [int(s) for s in input().split(' ')]

data.sort()
data = [str(i) for i in data]
print(' '.join(data))

Solution (Python):
def SortingThreeNumbers():
    num = list(map(int,input().split()))
    num.sort()
    print(num[0],num[1],num[2])
SortingThreeNumbers()

Solution (Python):
x=input().split( )
x.sort()
print(x[0] + " " + x[1] + " " + x[2])

Solution (Python):
Arr = []
Arr = input().split()
for i in range(3):
    Arr[i] = int(Arr[i])
for j in range(0, 2, 1):
    for i in range(0 , 2-j , 1):
        if(Arr[i] > Arr[i+1]):
            buf = Arr[i]
            Arr[i] = Arr[i+1]
            Arr[i+1]=buf
print("{} {} {}".format(Arr[0],Arr[1],Arr[2]))

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

while(b < a or c < a or c < b):
	if(a > b):
		tmp = a
		a = b
		b = tmp
	if(b > c):
		tmp = b
		b = c
		c = tmp

print(a, b, c)

Solution (Python):
a=list(map(int, input().split()))
a.sort()
print("{0} {1} {2}".format(a[0],a[1],a[2]))

Solution (Python):
numbers=list(map(int,input().split()))
numbers.sort()
print(numbers[0],numbers[1],numbers[2])

Solution (Python):
xs = list(map(int, input().split()))
xs.sort()
print(' '.join(map(str, xs)))

Solution (Python):
s = [eval(x) for x in input().split()]
s.sort()
print(s[0],s[1],s[2])

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

if b >c:
    y = c
    c=b
    b=y
else:
    pass
if a > b:
    x = a
    a = b
    b = x
else:
    pass

print (a,b,c)

Solution (Python):
print(*sorted(map(int, input().split())))

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

print sorted_line[0], sorted_line[1], sorted_line[2]

Solution (Python):
nums=sorted(list(map(int,input().split())))
print(*nums)

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

print(a,b,c)

Solution (Python):
z =[int(i) for i in input().split()]
  
z.sort()
print("{0} {1} {2}".format(z[0],z[1],z[2]))

Solution (Python):
a = map(int, raw_input().split())

if a[0] > a[1]:
	tmp=a[0]
	a[0]=a[1]
	a[1]=tmp
	
if a[1] > a[2]:
	tmp=a[1]
	a[1]=a[2]
	a[2]=tmp

if a[0] > a[1]:
	tmp=a[0]
	a[0]=a[1]
	a[1]=tmp
	
print a[0],a[1],a[2]

Solution (Python):
x=list(map(int,input().split()))
x.sort()
print(x[0],x[1],x[2])

Solution (Python):
a = sorted(map(int, input().split()))
print(a[0], a[1], a[2])

Solution (Python):
a = list(i for i in input().split()) 
a.sort()
b = " ".join(a)
print(b)

Solution (Python):
inputlines = list(map(int, input().split()))
li = sorted(inputlines)
print(' '.join(map(str, li)))

Solution (Python):
memo = input().split()
[int(i) for i in memo]
memo.sort()
print(memo[0]+" "+memo[1]+" "+memo[2])

Solution (Python):
a = [int(i) for i in input().split()]
list.sort(a)
print(a[0],a[1],a[2])

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

def sortBy(a, b, c):
	line = []
	taples = (a, b, c)
	line = list(taples)
	line.sort()
	return '{} {} {}'.format(line[0], line[1], line[2])

print(sortBy(a, b, c))

Solution (Python):
a = map(int, raw_input().split())
a.sort()
print(" ".join(str(i) for i in a))

Solution (Python):
x = input().split(" ")
a = int(x[0])
b = int(x[1])
c = int(x[2])
if a > b:
    t = a
    a = b
    b = t
if b > c:
    t = b
    b = c
    c = t
if a > b:
    t = a
    a = b
    b = t
print(str(a) + " " + str(b) + " " + str(c))

Solution (Python):
num = list(map(int, input().split()))
num.sort()
print(' '.join(map(str,num)))

Solution (Python):
n = map(str, raw_input().split())
print ' '.join(sorted(n)),

Solution (Python):
tmp = input()
tmp = tmp.split(" ")
tmp = list(map(int,tmp))
tmp.sort()
tmp = list(map(str,tmp))
print(" ".join(tmp))

Solution (Python):
num = list(map(int,input().split(" ")))
print(" ".join(map(str,sorted(num))))

Solution (Python):
i = input()
i = i.split(" ")
i = list(map(int,i))
i.sort()
print("{0} {1} {2}".format(i[0],i[1],i[2]))

Solution (Python):
n = [int(i) for i in input().split()]
n = sorted(n)
for i in range(3):
    if i == 2:
        print(n[i])
    else:
        print(n[i], end = " ")

Solution (Python):
abc = input().split()
abc.sort()
print(abc[0]+' '+abc[1]+' '+abc[2])

Solution (Python):
a=list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Solution (Python):
a = map(int, raw_input().split())                                               
a.sort()
for i in range(len(a)):
    print a[i],

Solution (Python):


import sys, math, os


PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")

a, b, c = sorted([int(_) for _ in input().split()])
print(a, b, c)

Solution (Python):
a = [int(number) for number in input().split()];
a.sort();
print(str(a[0]) + ' ' + str(a[1]) + ' ' + str(a[2]));

Solution (Python):
a = list(map(int,input().split()))

a.sort()

print(a[0],a[1],a[2])

Solution (Python):
print(*sorted(input().split(" ")))

Solution (Python):
i_list = input().split()
i_list.sort(key=int)
print(int(i_list[0]),end='')
print('',int(i_list[1]),end='')
print('',int(i_list[2]))

Solution (Python):
x = list(map(int,input().split()))
x = sorted(x)
print("{0} {1} {2}".format(x[0],x[1],x[2]))

Solution (Python):
a,b,c = map(int,raw_input().split())
n = [a, b, c]
n.sort()
print "%d %d %d" %(n[0] ,n[1], n[2])

Solution (Python):
a,b,c = map(int,raw_input().split())
if b <= a:
    if b <= c <= a:
        print b,c,a
    elif c <= b <= a:
        print c,b,a
    else:
        print b,a,c
elif a < b:
    if a <= c <= b:
        print a,c,b
    elif c <= a < b:
        print c,a,b
    else:
        print a,b,c

Solution (Python):
x = input()
split_x = x.split()
split_x_int = [int(i) for i in split_x]
split_x_int.sort()
a = split_x_int[0]
b = split_x_int[1]
c = split_x_int[2]

print(str(a) + " "+ str(b) + " " + str(c))

Solution (Python):
num_list=input().split()
num_list[0]=int(num_list[0])
num_list[1]=int(num_list[1])
num_list[2]=int(num_list[2])

def sort(num_list):
    for i in range(0,len(num_list)-1):
        for j in range(0,len(num_list)-1):
            if num_list[j]>num_list[j+1]:
                num=num_list[j]
                num_list[j]=num_list[j+1]
                num_list[j+1]=num

sort(num_list)
print(num_list[0],num_list[1],num_list[2])

Solution (Python):
num = input().split()

num.sort()
print(num[0], num[1], num[2])

Solution (Python):
a, b, c = map(int, raw_input().split())

if a < b:
    mid = b
    mini = a
    if mid < c:
        maxi = c
    else:
        if mini < c:
            maxi = mid
            mid = c
        else:
            maxi = mid
            mid = mini
            mini = c

else:
    mid = a
    mini = b
    if mid < c:
        maxi = c
    else:
        if mini < c:
            maxi = mid
            mid = c
        else:
            maxi = mid
            mid = mini
            mini = c


print('{} {} {}'.format(mini, mid, maxi))

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

x.sort()

print (x[0] , x[1] , x[2])

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

if a < b:
    if a < c:
        one = a
        if b < c:
            two = b
            three = c
        else:
            two = c
            three = b
    else:
        one = c
        two = a
        three = b
else:
    if b < c:
        one = b
        if a < c:
            two = a
            three = c
        else:
            two = c
            three = a
    else:
        one = c
        two = b
        three = a

print("{0} {1} {2}".format(one,two,three))

Solution (Python):
i = input().split()

a = int(i[0])
b = int(i[1])
c = int(i[2])

values = [a, b, c]
values.sort()

print(" ".join(map(str, values)))

Solution (Python):
def split(a, b):
	temp = a
	a = b
	b = temp
	return a, b

a, b, c = map(int, input().split())
temp = 0

if a > b:
	a, b = split(a, b)
if a > c:
	a, c = split(a, c)
if b > c:
	b, c = split(b, c)

print(a, b, c)

Solution (Python):
n = map(int,raw_input().split())
n.sort()
print n[0],n[1],n[2]

Solution (Python):
a = sorted([int(i) for i in input().split()])
print(a[0], a[1], a[2])

Solution (Python):
print(*sorted(eval(input().replace(' ', ','))), sep=' ')

Solution (Python):
I = input().split()
for i in[0, 1, 2]:
    I[i] = int(I[i])
for i in[0, 1, 2]:
    j = i + 1
    while j <= 2:
        if I[i] > I[j]:
            w = I[i]
            I[i] = I[j]
            I[j] = w
        j += 1
print(str(I[0]) + ' ' + str(I[1]) + ' ' + str(I[2]))

Solution (Python):
a = list(map(int,input().split()))

a.sort()

print(a[0],a[1],a[2])

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

if a>b>c:
  print(c,b,a)

elif a>c>b:
  print(b,c,a)

elif b>a>c:
  print(c,a,b)

elif b>c>a:
  print(a,c,b)

elif c>a>b:
  print(b,a,c)

elif a==b>c:
  print(c,a,b)

elif c==a>b:
  print(b,a,c)

elif b==c>a:
  print(a,b,c)

elif a==b<c:
  print(a,b,c)

elif c==a<b:
  print(c,a,b)

elif b==c<a:
  print(b,c,a)

else:
  print(a,b,c)

Solution (Python):
nums=sorted(list(map(int, input().split())))
print('%d %d %d' % (nums[0],nums[1],nums[2]))

Solution (Python):
data = list(map(int, input().split()))
data.sort()

print(*data)

Solution (Python):
print(*list(sorted(map(int,input().split()))))

Solution (Python):
user1,user2,user3=map(int,input().split())

if user3<user2:
    user3,user2=user2,user3

if user2<user1:
    user2,user1=user1,user2

if user3<user2:
    user2,user3=user3,user2

print(user1,user2,user3)

Solution (Python):
a,b,c=input().split()
a=int(a);b=int(b);c=int(c)

if a>c:
    d=a;a=c;c=d

if b>c:
    d=b;b=c;c=d

if a>b:
    d=a;a=b;b=d

print(a,b,c)

Solution (Python):
lin = input()
l = lin.split(" ")
a = int(l[0])
b = int(l[1])
c = int(l[2])

l = [a,b,c]
l.sort()

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

Solution (Python):
a = list(map(int, input().split()))
a.sort()
print(a[0], a[1], a[2])

Solution (Python):
print(" ".join(map(str, sorted(map(int, input().split())))))

Solution (Python):
num = input().split()
 
num.sort()
print(num[0], num[1], num[2])

Solution (Python):
l1 = list(input().split(" "))
idx = 0
for i in l1:
    l1[idx] = int(i)
    idx += 1
l1.sort()
print(l1[0], l1[1], l1[2])

Solution (Python):




def main():
    print(*sorted(list(map(int, input().split()))))


if __name__ == '__main__':
    main()

Solution (Python):
integer = [int(n) for n in input().split()]
sort = sorted(integer)
for i in range(3):
    if i == 3 - 1:
        print(sort[i])
    else:
        print(sort[i], end=' ')

Solution (Python):
numbers = input().split()

print(" ".join(map(str,sorted(numbers))))

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

str="{d} {e} {f}"
print(str.format(d=a, e=b, f=c))

Solution (Python):
a = list(map(int, input().split()))
a.sort()
print(a[0],a[1],a[2])

Solution (Python):
a, b, c = (int(i) for i in ((input()).split()))
if a > b:
    a, b = b, a
if c <= a:
    a, b, c = c, a, b
elif a <= c <= b:
    b, c = c, b
print(a, b, c)

Solution (Python):

q = [int(x) for x in input().split()]
q = sorted(q)
for i in range(len(q)):
	print(q[i], end='')
	if (i != (len(q))-1):
		print('', end=' ')
	else:
		print()

Solution (Python):
r = input().split()
a = int(r[0])
b = int(r[1])
c = int(r[2])

m1 = min(a,b,c)
m3 = max(a,b,c)

if a == m1:
    m2 = min(b,c)
elif b == m1:
    m2 = min(a,c)
else:
    m2 = min(a,b)

print(m1,m2,m3)

Solution (Python):
x = sorted(map(int, input().split()))
print(' '.join(map(str, x)))

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

if a < b:
	if a < c:
		x = a
		if b < c:
			y = b
			z = c
		else:
			y = c
			z = b
	else:
		x = c
		y = a
		z = b
elif a < c:
	 	x = b
	 	y = a
	 	z = c
elif b < c:
	x = b
	y = c
	z = a
else:
	x = c
	y = b
	z = a
	
print(x, y, z)

Solution (Python):
a = sorted(list(map(int, input().split())))

for i in range(len(a)):
    if i == len(a)-1:
        print(a[i])
    else:
        print(a[i], end=" ")

Solution (Python):
z = map(int, input().split())
a = sorted(z)
print("{} {} {}".format(a[0], a[1], a[2]))

Solution (Python):
list = sorted(map(int, raw_input().split()))
strlist = map(str, list)
print strlist[0], strlist[1], strlist[2]

Solution (Python):
numbers = list(map(int, input().split()))
numbers.sort()
print('%d %d %d' % tuple(numbers))

Solution (Python):
def main():
    x = input()
    x1, x2, x3 = x.split(' ') 
    a = int(x1)
    b = int(x2)
    c = int(x3)
    z = [a, b, c]
    z.sort()
    print(z[0],z[1],z[2])

if __name__ == "__main__":
    main()

Solution (Python):
l=sorted(map(int,raw_input().split()))
print l[0],l[1],l[2]

Solution (Python):
l=list(map(int,input().split()))
L=sorted(l)
print(L[0],L[1],L[2])

Solution (Python):
num = [int(i) for i in raw_input().split()]
num = [str(i) for i in sorted(num)]
print " ".join(num)

Solution (Python):
A=list(map(int, input().split()))
A.sort()
print(A[0],A[1],A[2])

Solution (Python):
nums = input().split()

nums.sort()

print(nums[0],nums[1],nums[2])

Solution (Python):
number = list(map(int, input().split()))
number.sort()
print(" ".join(map(str, number)))

Solution (Python):
a = list(map(int, input().split()))
a.sort()
print(a[0], a[1], a[2])

Solution (Python):
a = list(map(int, input().split()))
a.sort()
print(a[0], a[1], a[2])

Solution (Python):
n = input().split()
n.sort()
print(n[0], n[1], n[2])

Solution (Python):
a = sorted(list(map(int, input().split())))

for i in range(len(a)):
    if i == len(a)-1:
        print(a[i])
    else:
        print(a[i], end=" ")

Solution (Python):
a = [int(i) for i in input().split()]
a.sort()
fmt = format("{0} {1} {2}")
g = fmt.format(a[0], a[1], a[2])
print(g)

Solution (Python):
l = [int(s) for s in input().split()]
print(' '.join([str(i) for i in sorted(l)]))

Solution (Python):
input_str = input().split(' ')
input_int = []

for value in input_str:
	input_int.append(int(value))

input_int.sort();
	
print('%d %d %d'%(input_int[0],input_int[1],input_int[2]));

Solution (Python):
a = sorted(map(int, input().split()))
print(*a)

Solution (Python):
d=list(map(int,input().split()))
d.sort()
print(d[0],d[1],d[2])

Solution (Python):
num=[int(i) for i in input().split()]
for i in range(len(num)):
    for j in range(i+1,len(num)):
        if num[i]>num[j]:
            bigger = num[i]
            num[i]=num[j]
            num[j]=bigger
for i in range(len(num)-1):
    print(num[i],end=" ")
print(num[len(num)-1])

Solution (Python):
deglist = raw_input().split(" ")
deglist.sort()
a = int(deglist[0])
b = int(deglist[1])
c = int(deglist[2])
print("{0} {1} {2}".format(a,b,c))

Solution (Python):
a=list(map(str,sorted(list(map(int,input().split())))))
print(a[0]+' '+a[1]+' '+a[2])

Solution (Python):
x = input().split()
x.sort()
a = int(x[0])
b = int(x[1])
c = int(x[2])
print (a,b,c)

Solution (Python):
N = [int(i) for i in input().split()]
N.sort()
print(" ".join(map(str,N)))

Solution (Python):
def main():
    a = list(map(int, input().split()))
    a.sort()
    for x in range(3):
        if x != 2:
            print(a[x], end = " ")
        else:
            print(a[x])


if __name__ == "__main__":
    main()

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

def comp(a,b,c):
	if a<b and b>=c:
		temp=c
		c=b
		b=temp
	if a>b and b<c:
		temp1=a
		temp2=b
		b=c
		a=temp2
		c=temp1
	if a>=b and b>=c:
		temp=c
		c=a
		a=temp

	print(a,b,c)

comp(a,b,c)

Solution (Python):
S = raw_input().split(' ')
for i in range(0,len(S)):
  S[i] = int(S[i])

if S[0] < S[1]:
  if S[0] < S[2]:
    a = S[0]
    if S[1] < S[2]:
      b = S[1]
      c = S[2]
    else:
      b = S[2]
      c = S[1]
  else:
    a = S[2]
    b = S[0]
    c = S[1]
else:
  if S[0] < S[2]:
    b = S[0]
    if S[1] < S[2]:
      a = S[1]
      c = S[2]
    else:
      a = S[2]
      c = S[1]
  else:
    c = S[0]
    if(S[1] < S[2]):
      a = S[1]
      b = S[2]
    else:
      a = S[2]
      b = S[1]

print(str(a) + ' ' + str(b) + ' ' + str(c))

Solution (Python):
def main():

    num_list = sorted(list(map(int, input().split())))
    print(' '.join(map(str, num_list)))


main()

Solution (Python):

l = list(map(int,input().split()))
l.sort()
desc = "{0} {1} {2}".format(l[0],l[1],l[2])
print(desc)

Solution (Python):
a = list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Solution (Python):
line = input()
nums = list(map(int, line.split()))

nums.sort()

print(' '.join(list(map(str,nums))))

Solution (Python):
a= list(map(int,input().split()))
a.sort()
print(a[0], a[1], a[2])

Solution (Python):

"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_2_C&lang=jp

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    numbers = [int(x) for x in input().split()]
    numbers.sort()
    print(*numbers)


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):
print(' '.join(sorted(input().split())))

Solution (Python):
a = map(int,raw_input().split())
a.sort()
print('%d %d %d'%(a[0],a[1],a[2]))

Solution (Python):
l = input()
data = l.split()
data.sort()

print("{} {} {}".format(data[0], data[1], data[2]))

Solution (Python):
a = list(map(int,input().split()))
a.sort()
print(" ".join(map(str, a)))

Solution (Python):
x=map(int, raw_input().split())

if x[0] > x[1]:
  x[0],x[1] = x[1],x[0]
if x[1] > x[2]:
  x[1],x[2] = x[2],x[1]
if x[0] > x[1]:
  x[0],x[1] = x[1],x[0]
print "%d %d %d" %(x[0],x[1],x[2])

Solution (Python):
print(' '.join(map(str,sorted(list(map(int,input().split()))))))

Solution (Python):
def main() :
    a, b, c = [int(i) for i in input().split()]

    if a > b :
        a, b = b, a
    if b > c :
        b, c = c, b
    if a > b :
        a, b = b, a

    print(a, b, c)



if __name__ == '__main__' :
    main()

Solution (Python):


import fileinput
import math

def main():

    for line in fileinput.input():
        array = list(map(int, line.strip().split()))

        array.sort()
        print('%d %d %d' % (array[0], array[1], array[2]))

if __name__ == '__main__':
    main()

Solution (Python):
nums = input().split()
nums = list(map(int, nums))

nums.sort()

print(' '.join(list(map(str, nums))))

Solution (Python):
def check(in_list):
    flag = True
    for i in in_list:
        if 1 <= i <= 10000:
            continue
        flag = False
    return flag
a = list(map(int, input().split()))
if check(a):
    print(" ".join(map(str, sorted(a))))