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:
a,b,c = map(int,input().split())
x=[a,b,c]
y=sorted([int(s) for s in x])
print(y[0],y[1],y[2])

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin

lis = list(map(int, stdin.readline().split()))

if lis[0] > lis[1]:
    lis[0], lis[1] = lis[1], lis[0]
if lis[1] > lis[2]:
    lis[1], lis[2] = lis[2], lis[1]
if lis[0] > lis[1]:
    lis[0], lis[1] = lis[1], lis[0]
    
print(*lis)

Submission status: Accepted

Solution code:
def main():
    l = input()
    a, b, c = list(map(int, l.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)
    return 0


if __name__ == "__main__":
    main()

Submission status: Accepted

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

for i in range(len(Num)-1):                # 1巡で１つ確定
    for j in range(len(Num)-1, i, -1):     # jを(i+1)まで下げる 
        if Num[j] < Num[j-1]:
           Num[j],Num[j-1] = Num[j-1],Num[j]

L=[str(a) for a in Num]
L=" ".join(L)
print(L)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
a, b, c = map(int,input().split())
if 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:
lst = [int(e) for e in input().split()]
lst.sort()
print(lst[0], lst[1], lst[2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

line = input().rstrip().split()
line.sort()
ans = " ".join(line)
print(ans)


# <?php

# $line = trim(fgets(STDIN));
# $num = explode(" ",$line);
# sort($num);
# $ans = implode(" ",$num);
# echo $ans . PHP_EOL;

# ?>

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
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,b,c=map(int,input().split())
numlist=[a,b,c]
print(*sorted(numlist))

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 = sorted([int(x) for x in input().split()])

print(l[0],l[1],l[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 = list(map(int, input().split()))
L.sort()
print(L[0],L[1],L[2],sep=(' '))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a,b,c=map(int, input().split())
if a>b:
    if a>c:
        if b>c:
            print(c,b,a)
        else:
            print(b,c,a)
    else:
        print(b,a,c)
else:
    if a>c:
        print(c,a,b)
    else:
        if b>c:
            print(a,c,b)
        else:
            print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

res = sorted(list_)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

nums.sort()

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

Submission status: Accepted

Solution code:
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
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:
three_num = sorted(list(map(int, input().split())))

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

Submission status: Accepted

Solution code:
#Insertion Sort
def insertion_sort(arr, n):
    for i_ in range(n-1):
        i = i_+1
        a = arr[i]
        j = i_ #initial value
        while j>=0 and arr[j]>a:
            #print(arr)
            arr[j+1]=arr[j]
            j -= 1
        arr[j+1] = a
    return arr


arr = list( map(int, input().split()) )
n = len(arr)
b = insertion_sort(arr,n)
print( str(b[0]) + " " + str(b[1]) + " " + str(b[2]) )

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:
#4--3
a = list(map(int, input().split()))
a.sort()
print(a[0], a[1], a[2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from operator import itemgetter
a,b,c=map(int,input().split())

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

res=""
for i in lists:
    res+=str(i)+" "

print(res[:-1])

Submission status: Accepted

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

Submission status: Accepted

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

l.sort()
s = ' '.join(l)
print(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

print(*x)

Submission status: Accepted

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

l = [a,b,c]

for i in range(2):
    if(l[0] > l[i+1]):
        l[0],l[i+1] = l[i+1],l[0]

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

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

Submission status: Accepted

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

if b > c:
    b1 = c
    c1 = b
    if a > b1:
        a1 = b1
        b2 = a
        if b2 > c1:
            c2 = b2
            b3 = c1
            print(str(a1) + " " + str(b3) + " " + str(c2))
        else:
            print(str(a1) + " " + str(b2) + " " + str(c1))
    else:
        print(str(a) + " " + str(b1) + " " + str(c1))

else:
    if a > b:
        a1 = b
        b1 = a
        if b1 > c:
            c1 = b1
            b2 = c
            print(str(a1) + " " + str(b2) + " " + str(c1))
        else:
            print(str(a1) + " " + str(b1) + " " + str(c))
    else:
        print(str(a) + " " + str(b) + " " + str(c))

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:
l=list(map(int,input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

d = p[0]
e = p[1]
f = p[2]
print(d,e,f)

Submission status: Accepted

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

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

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)
    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:
table = list(map(int, input().split()))

for i in range(0, 2):
    k = 2
    while i < k:
        if table[k] < table[k-1]:
            table[k], table[k-1] = table[k-1], table[k]
        k -= 1;
        
print(table[0], table[1], table[2])

Submission status: Accepted

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

arr = [a, b, c]
# if arr[0] > arr[1]:
#     arr[0], arr[1] = arr[1], arr[0] 
# if arr[1] > arr[2]:
#     arr[1], arr[2] = arr[2], arr[1] 
# if arr[0] > arr[1]:
#     arr[0], arr[1] = arr[1], arr[0] 

arr.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

while num < 2:
    if a>b :
        i = a
        a = b
        b = i

    if b>c :
        i = b
        b = c
        c = i

    if a > c:
        i = a
        a = c
        c = i
    
    num += 1

print(a , b , c)

Submission status: Accepted

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

if b < a:
    temp = b
    b = a
    a = temp

if c < b:
    temp = c
    c = b
    b = temp

if b < a:
    temp = b
    b = a
    a = temp

print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ls = input().split()
l = [int(s) for s in ls]
if l[0]>l[1]:
    l[0],l[1]=l[1],l[0]
if l[1]>l[2]:
    l[1],l[2]=l[2],l[1]
if l[0]>l[1]:
    l[0],l[1]=l[1],l[0]
print("%d %d %d"% (l[0],l[1],l[2]))

Submission status: Accepted

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

threeInt.sort()

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

Submission status: Accepted

Solution code:
input_list = input().split()
input_list.sort()
print(*input_list, sep=' ')

Submission status: Accepted

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

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

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

for i in range(2):
    for j in range(i+1, 3):
        if l[i] > l[j]:
            tmp = l[i]
            l[i] = l[j]
            l[j] = tmp

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

Submission status: Accepted

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

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

if a > b:
    a, b = b, a
else:
    pass

if b > c:
    b, c = c, b
else:
    pass

if a > b:
    a, b = b, a
else:
    pass

print(a, b, c)

Submission status: Accepted

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

num_list = sorted(num_list)
print(num_list[0], num_list[1], num_list[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:
list=sorted(map(int,raw_input().split()))
strlist=map(str,list)
print strlist[0]+' '+strlist[1]+' '+strlist[2]

Submission status: Accepted

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

Submission status: Accepted

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

l.sort()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = list(input().split(' '))
s.sort()

str = ' '.join(s)
print(str)

Submission status: Accepted

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

ans_numbers = sorted(numbers)
print(ans_numbers[0],ans_numbers[1],ans_numbers[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

list2 = [a,b,c]
list2.sort()
print(list2[0],list2[1],list2[2])

Submission status: Accepted

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

if b>c:
    b,c = c,b
        
if b < a:
    a,b=b,a
    
    
print(str(a)+" "+str(b)+" "+ str(c))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
base = input("")
term = base.split(' ')
sort_list = [int(term[0]), int(term[1]), int(term[2])]
sort_list.sort()
print("{} {} {}".format(sort_list[0], sort_list[1], sort_list[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = list(map(int, input().split()))
l = sorted([a,b,c])
d, e, f = l
print(f"{d} {e} {f}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = list(map(int, input().split()))
n1 = min(n)
n2 = sorted(n)[-2]
n3 = max(n)

print(n1, n2, n3)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c=input().split()
if a<b<c:
    print(str(a)+" "+str(b)+" "+str(c))
elif a<c<b:
    print(str(a)+" "+str(c)+" "+str(b))
elif b<a<c:
    print(str(b)+" "+str(a)+" "+str(c))
elif b<c<a:
    print(str(b)+" "+str(c)+" "+str(a))
elif c<a<b:
    print(str(c)+" "+str(a)+" "+str(b))
elif c<b<a:
    print(str(c)+" "+str(b)+" "+str(a))
elif a==b and a<c:
    print(str(a)+" "+str(b)+" "+str(c)) 
elif a==b and a>c:
    print(str(c)+" "+str(b)+" "+str(a)) 
elif b==c and a<c:
    print(str(a)+" "+str(b)+" "+str(c)) 
elif b==c and a>c:
    print(str(c)+" "+str(b)+" "+str(a))
elif a==c and a<b:
    print(str(a)+" "+str(c)+" "+str(b))
elif a==c and a>b:
    print(str(b)+" "+str(c)+" "+str(a))
else:
    print(str(a)+" "+str(b)+" "+str(c))

Submission status: Accepted

Solution code:
i = list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる
i.sort()
print(i[0],i[1],i[2])

Submission status: Accepted

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

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

Submission status: Accepted

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

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(a,b,c)
elif a < c and c < b:
    print(a,c,b)
elif b < a and a < c:
    print(b,a,c)
elif b < c and c < a:
    print(b,c,a)
elif c < a and a < b:
    print(c,a,b)
elif c < b and b < a:
    print(c,b,a)
elif a == b and b < c:
    print(a,b,c)
elif a == c and c < b:
    print(a,c,b)
elif b == c and c < a:
    print(b,c,a)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-   
a = list(map(int, input().split()))
a.sort()
print(a[0], a[1], a[2])

Submission status: Accepted

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

for i in range(1,3):
    v = N[i]
    j = i-1
    while j>=0 and N[j]>v:
        N[j+1] = N[j]
        j -=1
    N[j+1] = v

print(" ".join(N))

Submission status: Accepted

Solution code:
import sys

def main():
  input = sys.stdin.readline().rstrip

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

  print(*sorted(li))


if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

X.sort()

print(*X)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
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(str(a) + ' ' + str(b) + ' ' + str(c))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def test():
    li = list(map(int, input().split()))
    li.sort()
    print(' '.join([str(v) for v in li]))

if __name__ == '__main__':
    test()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(" ".join([str(n) for n in nums]))

Submission status: Accepted

Solution code:
s=input()
x=list(map(int, s.split()))
x.sort()
a,b,c = x
print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if a< b< c:
    print(f"{a} {b} {c}")
elif a < c < b:
    print(f"{a} {c} {b}")
elif b < a < c:
    print(f"{b} {a} {c}")
elif b < c < a:
    print(f"{b} {c} {a}")
elif c < a < b:
    print(f"{c} {a} {b}")
elif c < b < a:
    print(f"{c} {b} {a}")
elif a == b == c:
    print(f"{a} {b} {c}")
elif a < b == c:
    print(f"{a} {b} {c}")
elif a > b == c:
    print(f"{c} {b} {a}")
elif a == b > c:
    print(f"{c} {a} {b}")
elif a == c < b:
    print(f"{a} {c} {b}")
else:
    print(f"{b} {a} {c}")

Submission status: Accepted

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

list1 = [a, b, c]

list1.sort()

for i in range(len(list1)):
    if i == 0:
        a = list1[i]
    elif i == 1:
        b = list1[i]
    else:
        c = list1[i]

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

Submission status: Accepted

Solution code:
i = input()
a,b,c = map(int, i.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, b, c = map(int, input().split())
tmp = 0
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:
a=list(map(int, input().split()))
for i in range(1,len(a)):
    tmp=a[0]
    if tmp>a[i]:
        tmp=a[i]
        a[i]=a[0]
        a[0]=tmp
if a[1]>a[2]:
    tmp=a[2]
    a[2]=a[1]
    a[1]=tmp
print(a[0],a[1],a[2])

Submission status: Accepted

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

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

if x < y:
    print('{} {} {}'.format(x, y, z))
else:
    print('{} {} {}'.format(y, x, z))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
abc = list(map(int, input().split()))
if abc[0] > abc[1]:
    abc[0], abc[1] = abc[1], abc[0]
if abc[1] > abc[2]:
    abc[1], abc[2] = abc[2], abc[1]
if abc[0] > abc[1]:
    abc[0], abc[1] = abc[1], abc[0]
    
print(f"{abc[0]} {abc[1]} {abc[2]}")

Submission status: Accepted

Solution code:
x, y, z = map(int, input().split())


def swap(t1, t2):
    return t2, t1


if x > z:
    x, z = swap(x, z)
if x > y:
    x, y = swap(x, y)
if y > z:
    y, z = swap(y, z)
print(x, y, z)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = input().split()
misort = [a, b, c]
for i in range(3):
    for j in range(i + 1, 3):
        if misort[i] > misort[j]:
            tmp = misort[j]
            misort[j] = misort[i]
            misort[i] = tmp
            
a, b, c = misort
print(a, b, c)

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

Submission status: Accepted

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

print(*A)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def sort(num):
    for i in range(len(num) - 1):
        for j in range(i + 1, len(num)):
            if num[i] > num[j]:
                tmp = num[i]
                num[i] = num[j]
                num[j] = tmp
                
    return num
            
num = input("").split()

num = sort(num)

a = int(num[0])
b = int(num[1])
c = int(num[2])
    
print(f"{a} {b} {c}")

Submission status: Accepted

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

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:
l = sorted(list(map(int,input().split())))
print(' '.join(map(str, l)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

l_sorted = sorted(l)

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

Submission status: Accepted

Solution code:
inp = input()
inp_list = inp.split()
for i in range(1, len(inp_list)+1):
  inp_list[i-1] = int(inp_list[i-1])
for j in range(1, len(inp_list)):
  for k in range(1, len(inp_list)):
    if inp_list[k-1] > inp_list[k]:
        tmp = inp_list[k-1]
        inp_list[k-1] = inp_list[k]
        inp_list[k] = tmp
print('%d %d %d' %(inp_list[0], inp_list[1], inp_list[2]))

Submission status: Accepted

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

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

Submission status: Accepted

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

if list[0] > list [1]:
    temp = list[0]
    list[0] = list[1]
    list[1] = temp

if list[1] > list [2]:
    temp = list[1]
    list[1] = list[2]
    list[2] = temp
    
if list[0] > list [1]:
    temp = list[0]
    list[0] = list[1]
    list[1] = temp

print(str(list[0]) + " " + str(list[1]) + " " + str(list[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:
number_list = list(map(int, input().split()))
new_list = sorted(number_list)
n=[str(a) for a in new_list]
n=" ".join(n)
print(n)