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:
# -*-coding:utf-8

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

Submission status: Accepted

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

nums.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def bubble_sort(l):
    N = len(l)
    isChange = True
    while isChange:
        isChange = False
        for i in range(N-1):
            if(l[i] > l[i+1]):
                l[i], l[i+1] = l[i+1], l[i]
                isChange = True
    return l

l = input().split()
out = bubble_sort(l)
print("{} {} {}".format(out[0], out[1], out[2]))

Submission status: Accepted

Solution code:
def main():
    n = input().split()
    a = int(n[0])
    b = int(n[1])
    c = int(n[2])
    ans = [a,b,c]
    ans.sort()

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def main():
    n = input().split()

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

    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("{0} {1} {2}".format(a,b,c))
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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(f'{a} {b} {c}')

Submission status: Accepted

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

Submission status: Accepted

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

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:
number = input().split()
number.sort()
print('{0} {1} {2}'.format(number[0],number[1],number[2]))

Submission status: Accepted

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

x=sorted([a,b,c])
print(x[0],x[1],x[2])

Submission status: Accepted

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

max_idx = len(nums)
for i in range(1, max_idx):
    for j in range(max_idx-i):
        if nums[j] > nums[j+1]:
            nums[j], nums[j+1] = nums[j+1], nums[j]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8
values = map(int, raw_input().split())
values.sort()
for value in values:
    print value,

Submission status: Accepted

Solution code:
l = input().split()
l.sort()
print(" ".join(l))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def parseSpaceDivideIntArgs(arg):
    tmpArr = arg.split()
    ret = []
    for s in tmpArr:
        ret.append(int(s))
    return ret


def getArr2SpaceDivideStr(arg):
    ret = ""
    isFirst = True
    for s in arg:
        if not isFirst:
            ret += ' '
        else:
            isFirst = False
        ret += str(s)
    return ret


instr = input()
# instr = "10000 1000 100"

instrSpl = parseSpaceDivideIntArgs(instr)
instrSpl.sort()

print(getArr2SpaceDivideStr(instrSpl))

Submission status: Accepted

Solution code:
if __name__ == '__main__':
	a, b, c = input().split()
	a, b, c = int(a), int(b), int(c)

	ans = sorted([a, b, c])
	print(ans[0], ans[1], ans[2])

Submission status: Accepted

Solution code:
#coding: UTF-8

x,y,z=map(int,input().split())
list = [x,y,z]
list.sort()

print(list[0],list[1],list[2],sep=' ')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a= list(int(i) for i in input().split())

a.sort()

risuto = ' '.join(map(str,a))
print(risuto)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc = input().split()
for n in abc:
	n = int(n)
	
a,b,c = abc[0],abc[1], abc[2]


low = min(abc)
high = max(abc)

abc.remove(low)
abc.remove(high)

print (low, abc.pop(), high)

Submission status: Accepted

Solution code:
n = input().split()
num = [0 for _ in range(len(n))]
for i in range(len(n)):
    num[i] = int(n[i])
for i in (reversed(range(len(n)))):
    for j in range(i):
        if num[j] > num[j + 1]:
            tmp = num [j + 1]
            num[j + 1] = num[j]
            num[j] = tmp
print(str(num[0])+" "+str(num[1])+" "+str(num[2]))

Submission status: Accepted

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

wei.sort()

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

Submission status: Accepted

Solution code:
a, b, c= map(int, input().split())
if a >= b:
    big = a
    mid = b
else:
    big = b
    mid = a
if c >= big:
    small = big
    big = c
else:
    small = c
if small >= mid:
    small_1 = mid
    mid = small
    small = small_1

print("{0} {1} {2}".format(small, mid, big))

Submission status: Accepted

Solution code:
input_lines = input()

data = input_lines.split()
listA = [int(data[0]), int(data[1]), int(data[2])]
listA.sort()

text = str(listA[0])+" "+str(listA[1])+" "+str(listA[2])

print(text)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
l = list(map(int, input().split()))

l.sort()

l = map(str,l)
l = ' '.join(l)
print(l)

Submission status: Accepted

Solution code:
#Branch on Condition - Sorting Three Numbers

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

Submission status: Accepted

Solution code:
def execute(a, b, c):
    return sorted([a, b, c])

if __name__ == '__main__':
    numbers = map(int, input().split(' '))
    print(*execute(*numbers))

Submission status: Accepted

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

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

while(True):
    if (a > b):
        a,b=b,a
    if (b > c):
        b,c=c,b
    if ((a <= b) and (b <= c)):
        break
print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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

l=sorted([a, b, c])
print(l[0], l[1], l[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
d = input().split()

d.sort()

sorting = str(d[0]) + ' '
sorting += str(d[1]) + ' '
sorting += str(d[2])

print(sorting)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding: utf-8

a,b,c = (int(i) for i in input().split())

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

for i,j in enumerate(l):
    print(j, end = ' ' if i != len(l)-1 else '\n')

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-

import sys

numbers = list(map(int, sys.stdin.readline().split()))
numbers.sort()
str_num = list(map(str, numbers))

print(' '.join(str_num))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
li=[a,b,c]
li=sorted(li)
print(li[0],li[1],li[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:
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)

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

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

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

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

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

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

Submission status: Accepted

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

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

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

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

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

Submission status: Accepted

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

l.sort()

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

Submission status: Accepted

Solution code:
while True:
    a, b, c = map(int, input().split())
    if a >= 1 and a <= 10000:
        if b >= 1 and b <= 10000:
            if c >= 1 and c <= 10000:
                break

if a <= b:
    if b <= c:
        print('{0} {1} {2}' .format(a, b, c))
    else :
        if a <= c:
            print('{0} {1} {2}' .format(a, c, b))
        else :
            print('{0} {1} {2}' .format(c, a, b))

else :
    if b >= c:
        print('{0} {1} {2}' .format(c, b, a))
    else :
        if a >= c:
            print('{0} {1} {2}' .format(b, c, a))
        else :
            print('{0} {1} {2}' .format(b, a, c))

Submission status: Accepted

Solution code:
import sys
input_data = input()
input_numbers = input_data.split()

if __name__ == '__main__':
    a = int(input_numbers[0])
    b = int(input_numbers[1])
    c = int(input_numbers[2])
    tmp = 0

    if c < a :
        tmp = a
        a = c
        c = tmp

    if  a > b :
        tmp = b
        b = a
        a = tmp

    if b > c :
        tmp = c
        c = b
        b = tmp

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
z = input()

z = z.split( )

list(map(int, z))

z.sort()

print(z[0] + ' ' + z[1] + ' ' + z[2])

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:
a = list(map(int, input().rstrip().split()))
for i, n in enumerate(sorted(a)):
    if i == 2:
        print(n)
    else:
        print(n, end=" ")

Submission status: Accepted

Solution code:
#!/usr/bin/env python

if __name__=='__main__':
    num = map(int, raw_input().split())
    num.sort()
    print ' '.join(map(str, num))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=input().split()

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

if a<=b and b<=c:
    print(str(a)+" "+str(b)+" "+str(c))
elif a<=c and b>=c:
    print(str(a)+" "+str(c)+" "+str(b))
elif b<=a and a<=c:
    print(str(b)+" "+str(a)+" "+str(c))
elif b<=c and a>=c:
    print(str(b)+" "+str(c)+" "+str(a))
elif c<=a and a<=b:
    print(str(c)+" "+str(a)+" "+str(b))
else:
    print(str(c)+" "+str(b)+" "+str(a))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lis = [int(x) for x in input().split()]
lis.sort()
for i in range(2):
    print(lis[i],end = " ")
print(lis[-1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

l = [a, b, c]
l = sorted(l)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: UTF-8

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

print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nums = list(map(int, input().split(" ")))
ans = sorted(nums)
st = list(map(str, ans))
print(st[0] + " " + st[1] + " " + st[2] )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


for line in sys.stdin:
    nums = list(map(int, line.split()))
    print(" ".join(map(str, sorted(nums))))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main(x):
    retval = ''
    sort_list = sorted(x)
    retval = '%d' % sort_list[0]
    for i in range(1, len(sort_list)):
        retval = '%s %d' % (retval, sort_list[i])
    print(retval)
        
if '__main__' == __name__:
    try:
        while True:
            main(list(map(int, input().strip().split(' '))))
    except EOFError:
        pass

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
### スペース区切りの３つの数値を小さい順にならべかえる。

str_in = raw_input()
int_in = map(int, str_in.split())

### i が0 に到達したらループから抜けるよ
for i in range(0, 2):
	for j in range (2, i, -1):
		if(int_in[j-1] > int_in[j]):
			swap = int_in[j-1]
			int_in[j-1] = int_in[j]
			int_in[j] = swap
		
		
print(repr(int_in[0])  + ' ' + repr(int_in[1]) + ' ' + repr(int_in[2]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

i = input().split()
a = i[0]
b = i[1]
c = i[2]

if b > c:
    n = b
    b = c
    c = n
if a > b:
    n = a
    a = b
    b = n
if b > c:
    n = b
    b = c
    c = n
print(a + " " + b + " " + c)

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,b,c = map(int,raw_input().split())
list1 = [a,b,c]
list1.sort()
ans = str(list1[0])+" "
for i in range(1,3):
    if i!=2:
        ans += str(list1[i])+" "
    else:
        ans += str(list1[i])
print ans

Submission status: Accepted

Solution code:
mn,md,mx = map(int,input().split())
for i in range(3):
    if(mn>md):
        mn,md = md,mn
    elif(mn>mx):
        mn,mx = mx,mn
    elif(md>mx):
        md,mx = mx,md
print(mn,md,mx)

Submission status: Accepted

Solution code:
m = [int(i) for i in input().split()]
for i in range(len(m)):
    if(m[0]>m[1]):
        m[0],m[1] = m[1],m[0]
    elif(m[0]>m[2]):
        m[0],m[2] = m[2],m[0]
    elif(m[1]>m[2]):
        m[1],m[2] = m[2],m[1]
print("{0} {1} {2}".format(m[0],m[1],m[2]))

Submission status: Accepted

Solution code:
m = [int(i) for i in input().split()]
for i in range(len(m)):
    if(m[0]>m[1]):
        m[0],m[1] = m[1],m[0]
    elif(m[1]>m[2]):
        m[1],m[2] = m[2],m[1]
print("{0} {1} {2}".format(m[0],m[1],m[2]))

Submission status: Accepted

Solution code:
input_line = raw_input()
temp_list = input_line.split()
a = int(temp_list[0])
b = int(temp_list[1])
c = int(temp_list[2])

x = min([a, b, c])
z = max([a, b, c])

if  not a in [x, z]:
  y = a
elif not b in [x, z]:
  y = b
else:
  y = c

print(str(x) + " " + str(y) + " " + str(z))

Submission status: Accepted

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

if a > b:
    tmp = a
    a = b
    b = tmp

if a > c:
    tmp = a
    a = c
    c = tmp

if b > c:
    tmp = b
    b = c
    c = tmp

print(a, b, c, sep = ' ')

Submission status: Accepted

Solution code:
# coding: utf-8

n = list(map(int, input().split()))
n.sort()
n = map(str, n)

print(' '.join(n))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
list = raw_input().split(" ")
list.sort()
print(" ".join(list))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
ss = s.split(" ")
arg = [int(sss) for sss in ss]
arg.sort()
dst = [str(a) for a in arg]
print(" ".join(dst))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list = input().split()
uplist = sorted(list)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

set.sort()

print(set[0], set[1], set[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:
li=sorted(map(int,input().split()))
print(*li)

Submission status: Accepted

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

if a < b:
    if a < c:
        if b < c:
            print("{} {} {}".format(a, b, c))
        else:
            print("{} {} {}".format(a, c, b))
    else:
        print("{} {} {}".format(c, a, b))
else:
    if b < c:
        if a < c:
            print("{} {} {}".format(b, a, c))
        else:
            print("{} {} {}".format(b, c, a))
    else:
        print("{} {} {}".format(c, b, a))

Submission status: Accepted

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

ary.sort()

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

Submission status: Accepted

Solution code:
#! python3
# sorting_three_numbers.py

nums = [int(x) for x in input().split()]

sorted_nums = []
sorted_nums.append(nums[0])

if nums[1] <= sorted_nums[0]:
    sorted_nums.insert(0, nums[1])
else:
    sorted_nums.append(nums[1])

if nums[2] <= sorted_nums[0]:
    sorted_nums.insert(0, nums[2])
elif nums[2] > sorted_nums[-1]:
    sorted_nums.append(nums[2])
else:
    sorted_nums.insert(1, nums[2])

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

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:
a,b,c=[int(x) for x in 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)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(*sorted(map(int, input().split())))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    x = input().split(' ')
    a = int(x[0])
    b = int(x[1])
    c = int(x[2])

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

Submission status: Accepted

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

Submission status: Accepted

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


def main():
    num_list = []
    num_list = [int(i) for i in input().split()]  #標準入力を行う
    num_list.sort()
    print('{0} {1} {2}'.format(num_list[0], num_list[1], num_list[2]))


main()

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:
nums = [int(i) for i in input().split()]
nums.sort()
print(" ".join(str(n) for n in nums))

Submission status: Accepted

Solution code:
def numinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

def main():
    a = numinput()
    a.sort()
    print('%d %d %d' % (a[0], a[1], a[2]))

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
args = input()

list_str = args.split(" ")
list_int = [int(s) for s in list_str]

list_int.sort()

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

Submission status: Accepted

Solution code:
tmp=input().split()
tmp.sort()
for i in range(0,len(tmp)-1):
    print(tmp[i],end=' ')
print(tmp[len(tmp)-1])

Submission status: Accepted

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

print(a,b,c,sep = " ")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(map(int, input().split()))
n = sorted(n)
for i, n in enumerate(n):
    if i == 2:
        print(n)
    else:
        print(n, end=' ')

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:
NumList  = list(map(int, input().split()))
NumList.sort()
NumList = ' '.join(str(e) for e in NumList)
print(NumList)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=input().split()
a = int(a)
b = int(b)
c = int(c)
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)
else:
	print(c,b,a)

Submission status: Accepted

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

X = map(int, raw_input().split())
Y = sorted(X)

print('%i %i %i' % (Y[0],Y[1],Y[2]))

Submission status: Accepted

Solution code:
a,b,c  = map (int, input().split())
if a > b:
    xc = a
    a = b
    b = xc
if b > c:
    xa = b
    b = c
    c = xa
if a > b:
    xc = a
    a = b
    b = xc
print ("{} {} {}".format(a,b,c))

Submission status: Accepted

Solution code:
data = input().split()
a = int(data[0])
b = int(data[1])
c = int(data[2])
i = 0
if a < b:
    pass
elif a > b:
    i = a
    a = b
    b = i
if b < c:
    pass
elif b > c:
    i = b
    b = c
    c = i
if a < b:
    pass
elif a > b:
    i = a
    a = b
    b = i
print(a, b, c)

Submission status: Accepted

Solution code:
for i, n in enumerate(sorted(list(map(int, input().split()))), 1):
    if i == 3:
        print(n)
    else:
        print(n, end=" ")

Submission status: Accepted

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

length = len(arr)

for i in range(length):
	for j in range(1, length):
		if i < j and arr[i] > arr[j]:
			temp = arr[i]
			arr[i] = arr[j]
			arr[j] = temp

arrStr = ''
for i in range(length):
	arrStr += str(arr[i])
	if i != length - 1:
		arrStr += ' '

print(arrStr)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

if __name__ == '__main__':
    l = map(int, sys.stdin.read().split())
    for i in range(0, len(l)):
        for j in range(i + 1, len(l)):
            if l[j] < l[i]:
                l[j], l[i] = l[i], l[j]
    print l[0], l[1], l[2]

Submission status: Accepted

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

Submission status: Accepted

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

li = sorted([a, b, c])
print(f"{li[0]} {li[1]} {li[2]}")

Submission status: Accepted

Solution code:
def swap(a, b):
    dummy = a
    a = b
    b = dummy
    return a, b


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

if l[0] > l[1]:
    l[0], l[1] = swap(l[0], l[1])

if l[1] > l[2]:
    l[1], l[2] = swap(l[1], l[2])

if l[0] > l[1]:
    l[0], l[1] = swap(l[0], l[1])

for n, i in enumerate(l):
    if n != 0:
        print(" ", end="")
    print(i, end="")
    
    if n == 2:
        print()

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:
lis = list(map(int, input().split()))
lis.sort()
print(str(lis[0])+" "+str(lis[1])+" "+str(lis[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
k=input().split()
k.sort()

print(k[0]+" "+k[1]+" "+k[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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("{0} {1} {2}".format(a, b, c))

Submission status: Accepted

Solution code:
# Sorting Three Numbers

integers = [int(i) for i in input().rstrip().split()]
seq = sorted(integers)
str = [str(j) for j in seq]
print(" ".join(str))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

s = input()
s = map(int, s.split())
print(" ".join(map(str,sorted(s))))

Submission status: Accepted

Solution code:
def solve(line):
    line.sort()
    print("{0} {1} {2}".format(line[0],line[1],line[2]))


def answer():
    s = input().split()
    line = list(map(int, s))
    
    solve(line)

if __name__ =='__main__':
    answer()