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



Sample input:
3 8 1


Sample output:
1 3 8

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ass, bss, css = input().split(" ")

a = int(ass)
b = int(bss)
c = int(css)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list = [int(s) for s in input().split()]
list.sort()
print(" ".join(map(str,list)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = sorted([int(i) for i in input().split()])
print("{0} {1} {2}".format(x[0],x[1],x[2]))

Submission status: Accepted

Solution code:
data = [int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
data = input().split()
print(' '.join(map(str, sorted(data))))

Submission status: Accepted

Solution code:
data = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
list = sorted([a,b,c])
print(list[0], list[1], list[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list=map(int,raw_input().split())
list.sort()
for i in range(len(list)):
	print '%d'%(list[i]),

Submission status: Accepted

Solution code:
list=sorted([int(x) for x in input().split()])
print(str(list[0])+" "+str(list[1])+" "+str(list[2]))

Submission status: Accepted

Solution code:
import string
L = string.split(raw_input())

L.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = map(int, raw_input().split())
s.sort()
print ' '.join(map(str, s))

Submission status: Accepted

Solution code:
n = input().split()
a = int(n[0])
b = int(n[1])
c = int(n[2])
if a > b:
	bf = a
	a = b
	b = bf
if b > c:
	bf = b
	b = c
	c = bf
if a > b:
	bf = a
	a = b
	b = bf
print(str(a) + " " + str(b) + " " + str(c))

Submission status: Accepted

Solution code:
a = input()
b = a.split(' ')
b[0] = int(b[0])
b[1] = int(b[1])
b[2] = int(b[2])
b.sort()
print(str(b[0])+' '+str(b[1])+' '+str(b[2]))

Submission status: Accepted

Solution code:
n = [int(x) for x in input().split()]
print(*sorted(n))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def swap(m, n, items):
    x = items[n]
    items[n] = items[m]
    items[m] = x
    

ABC = input().split()

if ABC[0] > ABC[1]:
    swap(0, 1, ABC)
    if ABC[1] > ABC[2]:
        swap(1, 2, ABC)
        if ABC[0] > ABC[1]:
            swap(0, 1, ABC)
elif ABC[1] > ABC[2]:
    swap(1, 2, ABC)
    if ABC[0] > ABC[1]:
        swap(0, 1, ABC)
print(ABC[0], ABC[1], ABC[2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: UTF-8
# ???????????´??°?????????????????????????????????????°??????????????????????????????????????????°?????????????????????????????????

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

data = sys.stdin.readline().strip().split(' ')
nums = [int(i) for i in data]
nums.sort()
print(' '.join([str(i) for i in nums]))

Submission status: Accepted

Solution code:
num = map(int, raw_input().split())

flg=1
while flg==1:
    flg=0
    for i in range(2):
        if num[i]>num[i+1]:
            box = num[i]
            num[i]=num[i+1]
            num[i+1]=box
            flg=1

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

Submission status: Accepted

Solution code:
inl=map(int, raw_input().split())

inl.sort()

print inl[0],inl[1],inl[2]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def a(b):
	return int(b)

c=input().split()
c.sort(key=a)
ans=""
for i in range(len(c)):
	if ans!="":
		ans+=" "
	ans+=str(c[i])
print(ans)

Submission status: Accepted

Solution code:
input_line = input()
list_num = input_line.strip().split(' ')
list_num.sort()
print(' '.join(list_num))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc = input().split()
a = int(abc[0])
b = int(abc[1])
c = int(abc[2])
# 12
if a > b:
  a, b = b, a
# 13
if a > c:
  a, c = c, a
# 23
if b > c:
  b, c = c, b
print("{0} {1} {2}".format(a, b, c))

Submission status: Accepted

Solution code:
#coding: UTF-8

def Sort(a,b,c):
    box = 0
    if a > b:
        box = b
        b = a
        a = box
    if b > c:
        box = c
        c = b
        b = box
    if a > b:
        box = b
        b = a
        a = box
    return a,b,c

if __name__=="__main__":
    a = input().split(" ")
    a,b,c = Sort(int(a[0]),int(a[1]),int(a[2]))
    print(str(a)+" "+str(b)+" "+str(c))

Submission status: Accepted

Solution code:
t = map(int, raw_input().split())
kaisu = len(t)

for i in range(kaisu-1):
    for j in range(i+1, kaisu) :
        if t[i] > t[j] :
            temp = t[i]
            t[i] = t[j]
            t[j] = temp

for i in range(kaisu):
    print "%d" %t[i] ,

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
lists=input().split()
lists.sort()
for list in lists:
    if list==lists[-1]:
        print(list)
    else:
        print(list,end=" ")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(*sorted(map(int,input().split())), sep=" ")

Submission status: Accepted

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

x = [a, b, c]

x.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i in input().split()]
if a < b:
    if b < c:
        print(a, b, c)
    elif c < a:
        print(c, a, b)
    else:
        print(a, c, b)
else:
    if a < c:
        print(b, a, c)
    elif c < b:
        print(c, b, a)
    else:
        print(b, c, a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = sorted([str(i) for i in input().split()])
print(' '.join(a))

Submission status: Accepted

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

l.sort()
l = map(str, l)

print(" ".join(l))

Submission status: Accepted

Solution code:
a1, a2, a3 = input().split()

l = [int(a1), int(a2), int(a3)]
l.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_lines = raw_input()
n1_n2_n3 = input_lines.rstrip().split(" ")
n1 = int(n1_n2_n3[0])
n2 = int(n1_n2_n3[1])
n3 = int(n1_n2_n3[2])
num_list = []
num_list.append(n1)
num_list.append(n2)
num_list.append(n3)
num_list.sort()
print str(num_list[0]) + " " + str(num_list[1]) + " " + str(num_list[2])

Submission status: Accepted

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

Submission status: Accepted

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

m.sort()

a = m[0]
b = m[1]
c = m[2]

print a,b,c

Submission status: Accepted

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

m.sort()
a = m[0]
b = m[1]
c = m[2]

print a,b,c

Submission status: Accepted

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

m = sorted(n)
a = m[0]
b = m[1]
c = m[2]

print a,b,c

Submission status: Accepted

Solution code:
ins = input().split()
a = int(ins[0])
b = int(ins[1])
c = int(ins[2])
nums = [a, b, c]
nums.sort()
print(" ".join(map(str, nums)))

Submission status: Accepted

Solution code:
z = input()
a = z.split()
a.sort()
print('{} {} {}'.format(a[0],a[1],a[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
d = a,b,c
x = sorted(d)
print(x[0],x[1],x[2])

Submission status: Accepted

Solution code:
L = map(int, raw_input().split())
L.sort()
print " ".join(map(str, L))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(" ".join(sorted(input().split())))

Submission status: Accepted

Solution code:
a = input().split()
print(" ".join(sorted(a)))

Submission status: Accepted

Solution code:
print(" ".join([str(y) for y in sorted([int(x) for x in input().split(" ")])]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
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(str(a)+" "+str(b)+" "+str(c))

Submission status: Accepted

Solution code:
if __name__ == "__main__":
	a = [ i for i in input().split() ]
	a.sort()
	print(' '.join(a))

Submission status: Accepted

Solution code:
a = [int(s) for s in raw_input().split()]
a.sort()
print " ".join([str(s) for s in a])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()
y = x.split(" ")
y = [int(z) for z in y]
c = 0
while c < 2:
    for z in range(0,2):
        if y[z] > y[z+1]:
            tmp = y[z+1]
            y[z+1] = y[z]
            y[z] = tmp
    c = c + 1
print("%d %d %d" % (y[0], y[1], y[2]))

Submission status: Accepted

Solution code:
inputStr = input()
numList = inputStr.split(' ')
numList = [int(x) for x in numList]
numList.sort()

outputStr = ''
count = len(numList)
for z in numList:
    outputStr = outputStr + str(z)
    count-=1
    if count>0 :
        outputStr+=' '

print(outputStr)

Submission status: Accepted

Solution code:
import sys

input_values = [int(x) for x in sys.stdin.readline().split()]
input_values.sort()

print(" ".join([str(x) for x in input_values]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = map(int, raw_input().split(' '))
for i in xrange(len(l)):
  print sorted(l)[i],

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# ?????°??????????????????
retVal = list(map(int, input().split()))
# ??????????????????
retVal.sort()
# ???????????????
print(retVal[0],retVal[1],retVal[2])

Submission status: Accepted

Solution code:
data = input().split()
data.sort()
print(str(data[0]) + " " + str(data[1]) + " " + str(data[2]))

Submission status: Accepted

Solution code:
a = [int(x) for x in input().split()]

a.sort()

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

Submission status: Accepted

Solution code:
values = input()
ret = sorted(values.split())
print(' '.join(x for x in ret))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    key_in = input()
    data = key_in.split(' ')

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(' '.join([str(i) for i in sorted([int(j) for j in input().split()])]))

Submission status: Accepted

Solution code:
list1 = input().split(" ")
list2 = list(map(int, list1))
list3 = sorted(list2)
list4 = list(map(str, list3))
answer_string = " ".join(list4)

print(answer_string)

Submission status: Accepted

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

Submission status: Accepted

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

a.sort()

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

Submission status: Accepted

Solution code:
def main():
    nums = sorted([int(c) for c in input().strip().split()])
    print(" ".join([str(c) for c in nums]))

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

a = list(map(int, input().split()))

for i in range(len(a) - 1):
    for j in range(len(a) - 1, i, -1):
        if a[j] < a[j - 1]:
            t = a[j]
            a[j] = a[j - 1]
            a[j - 1] = t
        

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = sorted(map(int, input().split()))
print(a, b, c)

Submission status: Accepted

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

if (a >= 1 and a <= 10000) and (b >= 1 and b <= 10000) and (c >= 1 and c <= 10000):
    listed = []
    listed.append(a)
    listed.append(b)
    listed.append(c)

    sorted = listed.sort()

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

Submission status: Accepted

Solution code:
x = input()
#x = str('6 2 5')
a = [n for n in x.split()]
a.sort()
print(' '.join(a))

Submission status: Accepted

Solution code:
al = list(map(int, input().split()))
al = sorted(al)
print(al[0],al[1],al[2])

Submission status: Accepted

Solution code:
s = list(map(int,input().split()))
print("%d %d %d" % tuple(sorted(s)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = list(map(int, input().split()))
t.sort()
for i in range(len(t)):
    print(t[i],end=' 'if i < len(t)-1 else '\n')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = list(map(int, input().split()))
x.sort()
for i in sorted(x[:-1]):
    print(i, end=' ')
print(x[-1])

Submission status: Accepted

Solution code:
#coding:utf-8

data = sorted([int(i) for i in input().split()])
s=""
for x in data:
	s+=(str(x)+" ")
print(s[0:len(s) - 1])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)
i = 0
if a > b:
    i = a
    a = b
    b = i
if c < a:
    i = a
    a = c
    c = i
if b > c:
    i = b
    b = c
    c = i
fmt = "{d} {e} {f}"
s = fmt.format(d = a,e = b,f = c)
print(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = map(int,raw_input().split(" "))
l.sort()

print "%s %s %s"%(l[0],l[1],l[2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import fileinput

for line in fileinput.input():
    tokens = list(map(int, line.strip().split()))
    tokens.sort()
    a, b, c = tokens[0], tokens[1], tokens[2]
    print(a, b, c)

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

line = input().strip().split(" ")

if int(line[0]) <= int(line[1]):
    if int(line[1]) <= int(line[2]):
        print(line[0] + " " + line[1] + " " + line[2])
    elif int(line[2]) < int(line[1]):
        if int(line[0]) <= int(line[2]):
            print(line[0] + " " + line[2] + " " + line[1])
        else:
            print(line[2] + " " + line[0] + " " + line[1])

elif int(line[1]) < int(line[0]):
    if int(line[0]) <= int(line[2]):
        print(line[1] + " " + line[0] + " " + line[2])
    else:
        if int(line[2]) <= int(line[1]):
            print(line[2] + " " + line[1] + " " + line[0])
        else:
            print(line[1] + " " + line[2] + " " + line[0])

Submission status: Accepted

Solution code:
data = map(int,raw_input().split())

if data[0] < data[1]:
    if data[1] < data[2]:
        print "%d %d %d" %(data[0],data[1],data[2])
    elif data[0] < data[2]:
        print "%d %d %d" %(data[0],data[2],data[1])
    else:
        print "%d %d %d" %(data[2],data[0],data[1])
else:
    if data[0] < data[2]:
        print "%d %d %d" %(data[1],data[0],data[2])
    elif data[1] < data[2]:
        print "%d %d %d" %(data[1],data[2],data[0])
    else:
        print "%d %d %d" %(data[2],data[1],data[0])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def sort_three_numbers(a, b, c): 
    """ 
    a: int or float
    b: int or float
    c: int or float
    returns a sorted list
    """
    result = []
    
    if a < b:
        if a < c:
            result.append(a)
            if b < c: # a < b < c
                result.append(b)
                result.append(c)
            else: # a < c < b
                result.append(c)
                result.append(b)
        else:
            result.append(c)
            result.append(a)
            result.append(b)
    else:
        if b < c:
            result.append(b)
            if a < c: # b < a < c
                result.append(a)
                result.append(c)
            else: # b < c < a
                result.append(c)
                result.append(a)
        else: # c < b < a
            result.append(c)
            result.append(b)
            result.append(a)

    return result


ivals = input().split(' ')
print('{0[0]} {0[1]} {0[2]}'.format(sort_three_numbers(ivals[0], ivals[1], ivals[2])))

Submission status: Accepted

Solution code:
#!usr/bin/env python3

def string_three_numbers_spliter():
    a, b, c = [int(i) for i in input().split()]
    return a, b, c


def main():
    a, b, c = string_three_numbers_spliter()
    lst = [a, b, c]
    lst.sort()
    print(' '.join(str(i) for i in lst))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
l = map(int ,raw_input().split())
print ' '.join(map(str,sorted(l)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
for i in range(len(a)):
    for j in range(i,len(a)):
        if a[i] > a[j]:
            ret = a[i]
            a[i] = a[j]
            a[j] = ret
print(" ".join(list(map(str,a))))

Submission status: Accepted

Solution code:
z = input()
w,x,y = z.split()
l = [w,x,y]
l.sort()
print(" ".join(l))

Submission status: Accepted

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

if nums[2] >= nums[1]:
	a=nums[1]
	b=nums[2]
else:
	b=nums[1]
	a=nums[2]
	
if nums[0] <= a:
	min=nums[0]
	mid=a
	max=b
elif nums[0] <= b:
	min=a
	mid=nums[0]
	max=b
else:
	min=a
	mid=b
	max=nums[0]

print(min,mid,max)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

x = list(map(int, input().split()))
x.sort()

# print(x[0], x[1], x[2])
print("{a} {b} {c}".format(a=x[0], b=x[1], c=x[2]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
l.sort()
print(*l)

Submission status: Accepted

Solution code:
l = map(int, raw_input().split())
l2 = sorted(l)
print str(l2[0])+" "+str(l2[1])+" "+str(l2[2])

Submission status: Accepted

Solution code:
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,sep=' ')

Submission status: Accepted

Solution code:
nums = [int(x) for x in input().split(" ")]
nums.sort()
res = " ".join([str(n) for n in nums])
print(res)

Submission status: Accepted

Solution code:
import sys
s = raw_input().rstrip().split(" ")
arr = []
arr.append(int(s[0]))
arr.append(int(s[1]))
arr.append(int(s[2]))
maxnum = -sys.maxint
minnum = sys.maxint
maxi=0
mini=0
for i in xrange(3):
	if maxnum<arr[i]:
		maxnum=arr[i]
		maxi=i
	if minnum>arr[i]:
		minnum=arr[i]
		mini=i
print minnum,arr[3-maxi-mini],maxnum

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    list = [int(i) for i in input().split()]
    print(' '.join([str(i) for i in sorted(list)]))

Submission status: Accepted

Solution code:
a= [int(x) for x in input().split()]
if a[0]>a[1]:
    a[0],a[1]=a[1],a[0]
if a[1]>a[2]:
    a[1],a[2]=a[2],a[1]
if a[0]>a[1]:
    a[0],a[1]=a[1],a[0]
print("{0} {1} {2}".format(a[0],a[1],a[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = sorted(input().split())
print('{} {} {}'.format(N[0],N[1],N[2]))

Submission status: Accepted

Solution code:
a = [int(x) for x in input().split() if x.isdigit()]
a.sort()
print(a[0], a[1], a[2])

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
a = sorted(a)
print('{0} {1} {2}'.format(a[0], a[1], a[2]))

Submission status: Accepted

Solution code:
array = [int(i) for i in input().split()]
array.sort()
for i in range(len(array)):
    if i == 2:
        print(array[i])
    else:
        print(array[i],end=" ")

Submission status: Accepted

Solution code:
import sys
num = input().split()
num.sort()
for i in range(len(num)-1):
    sys.stdout.write(num[i]+" ")
print(num[2])

Submission status: Accepted

Solution code:
inps = input().split()
lst = [int(i) for i in inps]
for idx in range(len(lst) - 1):
    for idx_next in range(idx+1, len(lst)):
        if lst[idx] > lst[idx_next]:
            tmp = lst[idx_next]
            lst[idx_next] = lst[idx]
            lst[idx] = tmp
print("{} {} {}".format(lst[0], lst[1], lst[2]))

Submission status: Accepted

Solution code:
numbers_list = [int(i) for i in input().split(' ')]
                
A = sorted(numbers_list)

print(' '.join([str(B) for B in A]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lst = list(map(int, input().split()))
for i, data in enumerate(sorted(lst)):
    if not i == len(lst)-1:
        print('{} '.format(data), end='')
    else:
        print('{}'.format(data))

Submission status: Accepted

Solution code:
a = map(int, raw_input().split())
print ' '.join(map(str,sorted(a)))

Submission status: Accepted

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

print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().rstrip().split(' ')
a = int(s[0])
b = int(s[1])
c = int(s[2])
if a > b:
	a,b = b,a
if b > c:
	b,c = c,b
if a > b:
	a,b = b,a
print(str(a) + " " + str(b) + " " + str(c))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
while(not a<=b<=c):
    if(a>b):a,b=b,a
    if(b>c):b,c=c,b
    if(a>c):a,c=c,a
print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys
import os

#input_text_path = __file__.replace('.py', '.txt')
#fd = os.open(input_text_path, os.O_RDONLY)
#os.dup2(fd, sys.stdin.fileno())

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

num.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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 = " ")