Problem:
Sorting Three Numbers Write a program which reads three integers, and prints them in ascending order. Input Three integers separated by a single space are given in a line. Output Print the given integers in ascending order in a line. Put a single space between two integers. Constraints  1 ≤ the three integers ≤ 10000  Sample Input 1 3 8 1 Sample Output 1 1 3 8

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

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

samp =[a,b,c]

for i in range(len(samp)):
    current = samp[i]
    j = i-1
    while (j >= 0 and samp[j] >  current):
        samp[j+1] = samp[j]
        j -= 1
    
    samp[j+1] = current
    
print("{} {} {}".format(samp[0],samp[1],samp[2]))

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

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

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

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

Solution (Python):
a,b,c=(int(x) for x in input().split())
for y in range(3):
    if a>b:
        tmp=a
        a=b
        b=tmp
    if b>c:
        tmp=b
        b=c
        c=tmp
print(a,b,c)

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

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

if a > b:
    sub = a
    a = b
    b = sub
    
if a > c:
    sub = a
    a = c
    c = sub

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

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

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

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

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

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

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

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

Solution (Python):
print(" ".join(sorted(input().split(), key=lambda x: int(x))))

Solution (Python):
str_a, str_b ,str_c = input().split()
a, b , c = int(str_a),int(str_b), int(str_c)
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))
else:
    print(str(c) + " " + str(b) + " " + str(a))

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

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

Solution (Python):
x = []
x = input().split()
x[0],x[1],x[2]=int(x[0]),int(x[1]),int(x[2])
if x[0] > x[1]:
    a = x[0]
    x[0] = x[1]
    x[1] = a
if x[1] > x[2]:
    a = x[2]
    x[2] = x[1]
    x[1] = a
if x[0] > x[1]:
    a = x[0]
    x[0] = x[1]
    x[1] = a
print(str(x[0]),str(x[1]),str(x[2]))

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

temp = 0

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

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

for x in range(3) :
    for y in range(x,3) :
        if table[x] > table[y]:
            table[x], table[y] = table[y], table[x]

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

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

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

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

print a[0] + ' ' + a[1] + ' ' + a[2]

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

Solution (Python):
x = input()
x = list(map(int, x.split( )))
x.sort()
x, y, z = map(str, x)
x = x + " " + y + " " + z
print(x)

Solution (Python):
x = input()
list = x.split()
[a, b, c] = list
list = [int(a), int(b), int(c)]
list.sort()
[a, b, c] = list
d = " "
ans = str(a) + d + str(b) + d +  str(c)

print(ans)

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

Solution (Python):
a,b,c = input().split()
 
if a > b:
 tmp = b
 b = a
 a = tmp

if b > c:
 tmp2 = c
 c = b
 b = tmp2

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

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

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

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

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

Solution (Python):
table = list(map(int,input().split()))
 
for i in range(2,0,-1):
    k = 0
    while k < i:
        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])

Solution (Python):
A = list(map(int, input().split()))
for i in range(2, 0, -1):
  j = 0
  while j < i:
    if A[j+1] < A[j]:
      A[j], A[j+1] = A[j+1], A[j]
    j += 1

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

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

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

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

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

Solution (Python):
x,y,z = map(str,input().split())
p = [x,y,z]
p.sort()
print(' '.join(map(str, p)))

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

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

print(a, b, c)

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

if numbers[0] > numbers[1]:
    tmp = numbers[0]
    numbers[0] = numbers[1]
    numbers[1] = tmp

if numbers[1] > numbers[2]:
    tmp = numbers[1]
    numbers[1] = numbers[2]
    numbers[2] = tmp


if numbers[0] > numbers[1]:
    tmp = numbers[0]
    numbers[0] = numbers[1]
    numbers[1] = tmp

str_numbers = list(map(str, numbers))
print(' '.join(str_numbers))

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

if (a > b):
    p = a
    a = b
    b = p

if (b > c):
    p = b
    b = c
    c = p

if (a > b):
    p = a
    a = b
    b = p

print(a, b, c)

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

if c<b:
    tmp = b
    b = c
    c = tmp

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

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

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

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

Solution (Python):


















datas = list(map(int, input().split()))
sorted_datas = sorted(datas)

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

Solution (Python):

data = list(input().split())
print(" ".join(sorted(data)))

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

def quicksort(list):
    if len(list) < 2:
        return list
    else:
        pivot = list[0]
        
        less = [i for i in list[1:] if i <= pivot]
        
        greater = [i for i in list[1:] if i > pivot]

        return quicksort(less) + [pivot] + quicksort(greater)

sorted = quicksort(abc)
print(sorted[0],sorted[1],sorted[2])

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

Solution (Python):
a = [int(x) for x in input().split()]
a.sort()
for j in range(2):
    print(a[j],end = ' ')

print(a[2])

Solution (Python):
i = input()
a,b,c = map(int, i.split())
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('{} {} {}'.format(a,b,c))

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

a = int(data[0])
b = int(data[1])
c = int(data[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

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

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

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

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

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

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

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

Solution (Python):
a = list(input().split())
a.sort()

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

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

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

print(a, b, c)

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

Solution (Python):
'''
import statistics

a, b, c = map(int, input().split(' '))
max_abc = max(a, b, c)
min_abc = min(a, b, c)
med_abc = statistics.median([a, b, c])
print(str(min_abc) + ' ' + str(med_abc) + ' ' + str(max_abc))
'''
a, b, c = map(int, input().split(' '))
sort_abc = sorted([a, b, c], reverse = False)
print(str(sort_abc[0]) + ' ' + str(sort_abc[1]) + ' ' +  str(sort_abc[2]))

Solution (Python):
i = input()
a,b,c = map(int,i.split())
list=[a,b,c]
sortlist = sorted(list)
print(sortlist[0],sortlist[1],sortlist[2],sep=" ")

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

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

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

Solution (Python):
a,b,c = map(int,input().split())
Min = min(a,b,c)
if Min==a:
    Mid = min(b,c)
    Max = max(b,c)
elif Min==b:
    Mid = min(a,c)
    Max = max(a,c)
else:
    Mid = min(a, b)
    Max = max(a, b)
print(Min,Mid,Max)

Solution (Python):





if __name__ == '__main__':
    a, b, c = map(int, raw_input().split())
    if b < a:
        a, b = b, a
    if c < a:
        a, c = c, a
    if c < b:
        b, c = c, b
    print a, b, c

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

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

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

Solution (Python):
x = list(map(int,input().split()))
a = x[0]
b = x[1]
c = x[2]
if a < b:
    if b < c:
        print(a, b, c)
    if c < b:
        if a < c:
            print(a, c, b)
        else:
            print(c, a, b)
if b < a:
    if a < c:
        print(b, a, c)
    else:
        if c < a:
            if b < c:
                print(b, c, a)
            else:
                print(c, b, a)

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

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

Solution (Python):
A, B, C = map(int,input().split())

if A > B:
        q = B
        B = A
        A = q
if B > C:
        w = C
        C = B
        B = w

if A > B:
        e = B
        B = A
        A = e

print(A,B,C)

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

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

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

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

Solution (Python):
a = input().split(' ')
for i in range(len(a)):
    a[i] = int(a[i])
min = min(a)
max = max(a)
a.remove(min)
a.remove(max)
print(str(min)+' '+str(a[0])+' '+str(max))

Solution (Python):
inp = input().split(" ")

inp.sort()

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

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

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

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

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

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

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

a=sorted(a)

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

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

Solution (Python):
input_list = input().split()
a, b, c = map(int, input_list)
if a <= b and b <= c:
    print(str(a) + " " + str(b) + " " + str(c))
elif a <= c and c <= b:
    print(str(a) + " " + str(c) + " " + str(b))
elif b <= a and a <= c:
    print(str(b) + " " + str(a) + " " + str(c))
elif b <= c and c <= a:
    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))

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

Solution (Python):

line = input().rstrip().split()
val = []
val.append(int(line[0]))
val.append(int(line[1]))
val.append(int(line[2]))
val.sort()
for i in range(len(val)):
    if i==len(val) -1:
        print(str(val[i]))
    else:
        print(str(val[i]) + " ", end="")

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

Solution (Python):
num_list = list(input().split())
sorted_list = sorted(num_list)
answer = ' '.join(sorted_list)
print(answer)

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

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

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

Solution (Python):
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(a,b,c)

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

Solution (Python):
list = input().split(' ')
for i, n in enumerate(list):
  list[i] = int(n)

change = True
while change:
    for i in range(len(list) - 1):
        change = False
        if list[i] > list [i + 1]:
            list[i], list[i + 1] = list[i + 1], list[i]
            change = True

string = ''
for i in range(len(list)):
  string += (str(list[i]) + ' ')

string = string.rstrip()

print(string)

Solution (Python):
arr=list(map(int, input().split()))
print("{} {} {}".format(*sorted(arr)))

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

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

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

Solution (Python):


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

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

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

Solution (Python):
a, b, c = map(int, input().split())
if b < a:
    tmp = a
    a = b
    b = tmp
if c < a:
    tmp = c
    c = b
    b = a
    a = tmp
elif c < b:
    tmp = b
    b = c
    c = tmp

print(a, b, c)

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

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


main()

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

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

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

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

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

numasc = sorted(num)

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

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

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

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

Solution (Python):
a, b, c= [int(x) for x in input().split()]
n = max(a, b, c)
m = min(a, b, c)
p = a + b + c - m - n
print(m, p, n)

Solution (Python):
numbers = input().split()
print (" ".join(sorted(numbers)))

Solution (Python):
string_list = input().split()
num_list = list(map(int, string_list))
num_list.sort()
string = ''
for i in range(len(num_list)):
    string = string + str(num_list[i]) + ' '
print(string.rstrip())

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

Solution (Python):
def sort_three_numbers(num:list) -> None:
    if len(num) != 3:
        raise ValueError('Few input.')
    if any([n < 1 or n > 10000 for n in num]):
        raise ValueError('Input integer is invalid.')

    sorted_str = [str(n) for n in sorted(num)]
    print(' '.join(sorted_str))

if __name__ == "__main__":
    in_str = input()
    in_list = [int(x) for x in in_str.split()]
    sort_three_numbers(in_list)

Solution (Python):
a,b,c = (int(x) for x in input().split())
if(b<a):
    tmp = b
    b = a
    a = tmp
if(c<b):
    tmp = c
    c = b
    b = tmp
if(b<a):
    tmp = a
    a = b
    b = tmp

print(a,b,c)

Solution (Python):
a, b, c = list(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
if b > c:
    d = c
    c = b
    b = d
print(a, b, c)

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

Solution (Python):
nums = sorted([int(s) for s in input().split()])
print('{} {} {}'.format(nums[0], nums[1], nums[2]))

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

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

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

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

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

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

Solution (Python):
import sys

values = (int(n) for n in sys.stdin.read().strip().split())
print(' '.join(map(str, sorted(values))))

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

Solution (Python):

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

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

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

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

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

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

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

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

for i in range(len(num)):
    if i==0:
        print(num[0],end="")
    else:
        print(" "+str(num[i]),end="")

print()

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

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

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

intData = [a, b, c]

intData.sort()

print(str(intData[0]), end=" ")
print(str(intData[1]), end=" ")
print(str(intData[2]))

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

Solution (Python):
l=list(input().split())
l1=sorted(l)
print(" ".join(l1))

Solution (Python):
z = input()
a,b,c = [ int(x) for x in z.split() ]
if a > b and a > c:
    if b > c:
        print (str(c) + " " + str(b) + " " + str(a))
    else:
        print (str(b) + " " + str(c) + " " + str(a))
elif b > a and b > c:
    if a > c:
        print (str(c) + " " + str(a) + " " + str(b))
    else:
        print (str(a) + " " + str(c) + " " + str(b))
else:
    if b > a:
        print (str(a) + " " + str(b) + " " + str(c))
    else:
        print (str(b) + " " + str(a) + " " + str(c))

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

n = [a,b,c]
n.sort()
print ('{0[0]} {0[1]} {0[2]}'.format(n))

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

l.sort()

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

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

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

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

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

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

print(f'{a} {b} {c}')

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

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

L = sorted(L)

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

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

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

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

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

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

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

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

Solution (Python):
import sys
numbers = list(map(int, sys.stdin.readline().split()))
numbers.sort()
print(' '.join(map(str,numbers)))

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

Solution (Python):
val_list = list(map(int,input().split()))
sort_list = sorted(val_list)
print(*sort_list, sep=' ')

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

Solution (Python):
line = input().split()
line.sort()

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

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

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

Solution (Python):
table = list(map(int,input().split()))
 
for i in range(2,0,-1):
    k = 0
    while k < i:
        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])

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

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

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

list.sort()
a1 = str(list[0])
a2 = str(list[1])
a3 = str(list[2])
print(a1+" "+a2+" "+a3)

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

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

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

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

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

if a > b:
        s = a
        a = b
        b = s
        
if b > c:
        s = b
        b = c
        c = s
        
if a > b:
        s = a
        a = b
        b = s

print (a,b,c)

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

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

Solution (Python):
data1=list(int(i) for i in input().split())
data1.sort()
data2=map(str,data1)
data3=' '.join(data2)
print(data3)

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

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

Solution (Python):
a,b,c=map(int,input().split())
if a>b:
	a,b=b,a
if b>c:
	b,c=c,b
if a>b:
	a,b=b,a
print(str(a)+" "+str(b)+" "+str(c))

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

Solution (Python):
a, b, c = map(int,input().split())
list =[a, b, c]
new_list = sorted(list)
print(' '.join(map(str,new_list)))

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

Solution (Python):
a, b, c = map(int, input().split())
f = a
s = b
t = c
if f > s:
 w = f
 f = s
 s = w
if s > t:
 x = s
 s = t
 t = x
if f > s:
 y = f
 f = s
 s = y
print(f, s, t)

Solution (Python):
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 a > c:
        if b > c: print("{} {} {}".format(c, b, a))
        else: print("{} {} {}".format(b, c, a))
    else:print("{} {} {}".format(b, a, c))

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

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

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

print(a, b, c)

Solution (Python):
a = input().split()
a.sort()
print(' '.join(a))

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

Solution (Python):
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)
else:
    print(c, b, a)

Solution (Python):

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

Solution (Python):

L=list(map(int,input().split()))
L.sort();
for i,n in enumerate(L):
    print(n,end='')
    if i<2 :
        print(" ",end='')
    else :
        print("")

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

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

min = a
max = c

if min-b>0:
    min = b
if (min-c)>0:
    min = c

if max-a<=0:
    max=a
if max-b<=0:
    max=b


if (a!=min and a!=max):
    mid = a

elif b!=min and b!=max:
    mid = b

elif c!=min and c!=max:
    mid = c
else:
    mid = min
print(min, mid, max)

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

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

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

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

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

Solution (Python):
inputs = input().split()
inputs_int = []
for i in inputs:
    inputs_int.append(int(i))
result = sorted(inputs_int)
print("{0} {1} {2}".format(result[0], result[1], result[2]))

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

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

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

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

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

Solution (Python):
S = input().split()
S.sort()
S_str = map(str, S)
print(' '.join(S_str))

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

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

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

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

Solution (Python):
a, b, c = map(str, input().split())
print((' '.join(sorted([a, b, c]))))

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

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

Solution (Python):
a = input()
b = a.split()
b.sort()
for i in range(len(b)):
    if i < len(b)-1:
        print(b[i] + ' ', end = '')
    else:
        print(b[i])