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())
if a > b:
    b,a = a,b

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

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

print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

arr.sort()

ans = ""
for elem in arr:
    ans += str(elem) + " "


print(ans[:-1])

Submission status: Accepted

Solution code:
import math
import copy
from copy import deepcopy
import sys
import fractions
# import numpy as np
from functools import reduce
# import statistics
import heapq
import collections
import itertools
sys.setrecursionlimit(100001)

# input = sys.stdin.readline
# sys.setrecursionlimit(10**6)

# ===FUNCTION===

def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList


# ===CODE===

data = getInputListInt()
data.sort()

print(*data, sep=" ")

Submission status: Accepted

Solution code:
# coding: utf-8
s = list(map(int,input().split()))
s.sort()
ans = list(map(str,s))
print(" ".join(ans))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

tablet.sort()

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

Submission status: Accepted

Solution code:
#2020-03-18
a  = list(map(int,input().split()))
print(*sorted(a))

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

Submission status: Accepted

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

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:
a,b,c= (int(x) for x in input().split())
d=b
e=c
if b<a:
    b=a
    a=d
    d=b
if b>c:
    b=c
    c=d
    d=b
    e=c
if  b<a:
    b=a
    a=d
print(f"{a} {b} {c}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
tables =list(map(int,input().split()))
for i in range(2,0,-1):
    k = 0
    while k < i:
        if tables[k] > tables[k+1]:
            tables[k],tables[k+1] = tables[k+1],tables[k]
        k+=1

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
s = input().rstrip().split(' ')
s.sort()
print(str(s[0]) + " " + str(s[1]) + " " + str(s[2]))

Submission status: Accepted

Solution code:
l= list(map(int, input().split()))
long=len(l)
for i in range(long-1):
	for j in range(long-1,i,-1):
		if (l[j]<l[j-1]):
			temp=l[j]
			l[j]=l[j-1]
			l[j-1]=temp

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
#n = sorted(i)
#print('{} {} {}'.format(n[0], n[1], n[2]))
n = [0] * 3
if i[0] > i[1]:
    n[1] = i[0]
    n[0] = i[1]
else:
    n[0] = i[0]
    n[1] = i[1]

if n[1] > i[2]:
    n[2] = n[1]
    n[1] = i[2]
else:
    n[1] = n[1]
    n[2] = i[2]

if n[0] > n[1]:
    t = n[0]
    n[0] = n[1]
    n[1] = t

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

Submission status: Accepted

Solution code:
l = sorted(input().split())
print(' '.join(l))

Submission status: Accepted

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

Submission status: Accepted

Solution code:

A = input()

a,b,c = map(int,A.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:
print(" ".join(map(str, sorted(list(map(int,input().split()))))))

Submission status: Accepted

Solution code:
# Sorting Three Numbers

# input process
num_list = list(map(int, input().split()))

# sorting process
num_list = sorted(num_list)
num_list = list(map(str, num_list))

# output process
print(" ".join(num_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:
a, b, c = sorted(input().split())
print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input().split()
li = list(map(int,l))
num = len(li)
for i in range(num-1):
    if li[i] > li[i + 1]:
        t = li[i]
        li[i] = li[i + 1]
        li[i + 1] = t
if li[0] > li[1]:
    t = li[0]
    li[0] = li[1]
    li[1] = t
a,b,c = li
print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_value = input()

numbers = list(map(int, input_value.split()))

numbers.sort()

print(*numbers)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(' '.join(list(sorted(input().split()))))

Submission status: Accepted

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

Submission status: Accepted

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

lis.sort()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=(int(x) for x in input().split())
num = [a , b , c]
for i in range(2):
    for j in range(i , 2):
        if num[i] > num[j+1]:
            n = num[i]
            num[i] = num[j+1]
            num[j+1] = n

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

Submission status: Accepted

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

Submission status: Accepted

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

for j in range(len(i)):
    for k in range(0, len(i) - (j+1)):
        if(i[k] > i[k+1]):
            temp = i[k]
            i[k] = i[k+1]
            i[k+1] = temp
print(i[0],i[1],i[2])

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
l= input()
a,b,c = list(map(int, l.split()))
if a < b < c:
    print(f"{a} {b} {c}")
elif a > b:
    if b > c:
        print(f"{c} {b} {a}")
    elif a > c:
        print(f"{b} {c} {a}")
    else:
        print(f"{b} {a} {c}")
elif a > c:
    if b > c:
        print (f"{c} {a} {b}")
else:
    print (f"{a} {c} {b}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

a, b, c = sorted(map(int, input().split()))
print("{} {} {}".format(a, b, c))

Submission status: Accepted

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

print(' '.join(out))

Submission status: Accepted

Solution code:
x,y,z=map(int,input().split())
if x > y:
    if y > z or y == z:
        print(z, y, x)
    elif y < z:
        print(y, z, x)
elif x < y:
    if y < z or y == z:
        print(x, y, z)
    elif y > z or y == z:
        print(x, z, y)
elif z < x:
    if x < y or x == y:
        print(z, x, y)
    elif x > y or x == y:
        print(z, y, x)

Submission status: Accepted

Solution code:

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

list= [a,b,c]
list.sort()
print(" ".join(map(str,list)))

Submission status: Accepted

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

X = [a,b,c]

Y = sorted(X)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
value = map(int,input().split())
ans = sorted(value)
ans2 = ""
for i in ans:
    ans2 += " " + str(i) 

print(ans2[1:])

Submission status: Accepted

Solution code:
def sort(a, b, c):
    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]
    return ' '.join(map(str, arr))


if __name__ == "__main__":
    a, b, c = map(int, input().split())
    print(sort(a, b, c))

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(f"{a} {b} {c}")

Submission status: Accepted

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

#time= int(input())
tmp = input().split()
a,b,c = list(map(lambda a: int(a), tmp))

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

l.sort()
print(l[0],l[1],l[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:
abc = input().split()

x = []
for i in range(0, 3): x.append(int(abc[i]))
for j in range(0, 2):
    for i in range(0, 2):
        if x[i] > x[i + 1]:
            tmp = x[i + 1]
            x[i + 1] = x[i]
            x[i] = tmp
print(x[0], x[1], x[2])

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans = list(map(int, input().split()))
ans.sort()
print(''.join(str(val) + ' ' for val in ans).rstrip())

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def sortNum(lst):
    lst.sort()
    print(lst[0], lst[1], lst[2])

def main():
    v =  input()
    lst = v.split()
    lst_int = [int(n) for n in lst]
    sortNum(lst_int)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
str_a, str_b, str_c = input().split()
a = int(str_a)
b = int(str_b)
c = int(str_c)
if a > b:
    tmp = a
    a = b
    b = tmp
if b > c:
    tmp = b
    b = c
    c = tmp
if a > b:
    tmp = a
    a = b
    b = tmp
print(str(a), str(b), str(c))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

input = [a, b, c]
k = len(input)
for i in range(k-1, 0, -1):
    for j in range(0, i, 1):
        if input[j] > input[j+1]:
            tmp = input[j]
            input[j] = input[j+1]
            input[j+1] = tmp


print(f"{input[0]} {input[1]} {input[2]}")

Submission status: Accepted

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

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

Submission status: Accepted

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

box.sort()
box = [str(x) for x in box]
box = ' '.join(box)

print(box)

Submission status: Accepted

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

Submission status: Accepted

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

a = sorted(a)

print(' '.join(a))

Submission status: Accepted

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

Submission status: Accepted

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

nums.sort()

print(*nums)

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
bool = True
while bool:
    bool = False
    for i in range(len(a) - 1):
        if a[i] > a[i+1]:
            a[i], a[i+1] = a[i+1], a[i]
            bool = True

a,b,c = a
print("{} {} {}".format(a,b,c))

Submission status: Accepted

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

Submission status: Accepted

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

ans = [a,b,c]
ans = sorted(ans)
num = ' '.join(ans)

print(num)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = [int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=list(map(int,input().split()))
A.sort()
for i in range(3):
    if i!=2:
        print(A[i],end=" ")
    else:
        print(A[i])

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

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

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

print(a, b, c)

Submission status: Accepted

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

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

Submission status: Accepted

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

for i in range(0, len(nums)):
    for j in range(0, len(nums)):
        if (nums[j] > nums[i]):
            min = nums[j]
            nums[j] = nums[i]
            nums[i] = min

text = " ".join(map(str, nums))
print(text)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if a > b:
    i = a
    a = b
    b = i
if a > c:
    k = a
    a = c
    c = k
if b > c:
    j = b
    b = c
    c = j

print(a, b, c)

Submission status: Accepted

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

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("%d %d %d"%(a,b,c))

Submission status: Accepted

Solution code:
a,b,c=(int(x) for x in input().split())
while a>b or b>c:
    if a>b:
        tmp=a
        a=b
        b=tmp
    elif b>c:
        tmp=b
        b=c
        c=tmp
print(a,b,c)

Submission status: Accepted

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

print(*abc)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
comparison_a, comparison_b, comparison_c = map(int, input("").split())

if comparison_a > comparison_b:
    temp = comparison_a
    comparison_a = comparison_b
    comparison_b = temp

if comparison_a > comparison_c:
    temp = comparison_a
    comparison_a = comparison_c
    comparison_c = temp

if comparison_b > comparison_c:
    temp = comparison_b
    comparison_b = comparison_c
    comparison_c = temp

print(f"{comparison_a} {comparison_b} {comparison_c}")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a < b:
    if b < c:
        print(str(a)+' '+str(b)+' '+str(c))
    elif a < c:
        print(str(a) + ' ' + str(c) + ' ' + str(b))
    else:
        print(str(c) + ' ' + str(a) + ' ' + str(b))
elif a < c:
    print(str(b) + ' ' + str(a) + ' ' + str(c))
elif c < b:
    print(str(c) + ' ' + str(b) + ' ' + str(a))
else:
    print(str(b) + ' ' + str(c) + ' ' + 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:
l = input().split()
l.sort()

print(f'{l[0]} {l[1]} {l[2]}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

a = [int(i) for i in readline().split()]
a.sort()
print(*a)

Submission status: Accepted

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

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:
n=[]
for i in map(int,input().split()):n.append(i)
n.sort()
print(*n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input().split()
l = list(map(int, l))
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(f"{l[0]} {l[1]} {l[2]}")

Submission status: Accepted

Solution code:
a,b,c = list(map(int,input().split()))
if a>b:
 w = a
 a = b
 b = w
if a>c:
 w = a
 a = c
 c = w
if b>c:
 w = b
 b = c
 c = w
print(f"{a} {b} {c}")

Submission status: Accepted

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

Submission status: Accepted

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

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

result = " ".join(map(str, list_num))

print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!python3

iim = lambda: map(int, input().rstrip().split())

def resolve():
    a = list(iim())
    a.sort()
    print(a[0], a[1], a[2])

if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

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

#-----
list_sort=[]

for num in list:
  less_count=0
  
  for check in list:
    if num > check:
      less_count += 1
      
  list_sort.append( [less_count, num] )

list_ans=[]
for i in range( len(list_sort) ):
  for L in list_sort:
    if L[0] == i: list_ans.append(str(L[1]))

print(' '.join(list_ans))

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

Submission status: Accepted

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

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


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

Submission status: Accepted

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

Submission status: Accepted

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

if a > c:
  tmp = a
  a = 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,b,c=(int(x) for x in input().split())
A,C=min(a,b,c),max(a,b,c)
B=a+b+c-A-C
print(A,B,C)

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
inp = input()

strabc = inp.split()

listnum = [int(i) for i in strabc]
sortnum = map(str, sorted(listnum))

print(' '.join(sortnum))

Submission status: Accepted

Solution code:
abc = list(map(int, input().split()))
a = max(abc)
c = min(abc)
abc.remove(a)
abc.remove(c)
print(c, abc[0], a)

Submission status: Accepted

Solution code:
L = [int(l) for l in input().split()]
L.sort()
print(*L)

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 = input().split(' ')

arr = [int(a), int(b), int(c)]
arr.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(0, 3):
    k = a.index(min(a))
    x.append(min(a))
    a[k] = 100000

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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],sep=" ")

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
x=min(a,b,c)
z=max(a,b,c)
y=a+b+c-z-x
print(x,y,z)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def sort_l(x):
    if len(x) == 0:
        return []
    r = min(x)
    x.remove(r)
    return [r] + sort_l(x)


a = list(map(int, input().split()))
print(*sort_l(a))