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):
a,b,c = map(int,input().split())
if a <= b and b <= c:
    print(f"{a} {b} {c}")
elif a <= c and  c <= b:
    print(f"{a} {c} {b}")
elif b <= a and a <= c:
    print(f"{b} {a} {c}")
elif b <= c and c <= a:
    print(f"{b} {c} {a}")
elif c <= a and a <= b:
    print(f"{c} {a} {b}")
else:
    print(f"{c} {b} {a}")

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

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

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

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

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

Solution (Python):
i = input()

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

if a > b:
    num = a
    a = b
    b = num

if b > c:
    num = b
    b = c
    c = num

if a > b:
    num = a
    a = b
    b = num


print(a, b, c)

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

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

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

Solution (Python):
def print_result(arr, n):
    for i in range(n):
        if i > 0:
            print(' ', end='')
        print(arr[i], end='')
    print('\n', end='')


arr = [eval(x) for x in input().split()]
arr.sort()
print_result(arr, arr.__len__())

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

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

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

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


def insertSort(a):
    n = len(a)
    for i in range(1, n):
        v = a[i]
        j = i - 1
        while j >= 0 and a[j] > v:
            a[j + 1] = a[j]
            j -= 1
        a[j + 1] = v


a = list(input().split())

insertSort(a)
pri(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):
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:
    v = a; a = b; b = v
if b > c:
    v = b; b = c; c = v
if a > b:
    v = a; a = b; b = v
print(a, b, c)

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

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

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

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

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

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

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

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

a.sort()

for i in range(2):
    print(a[i], end=' ')

print(a[2])

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

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

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

li.sort()
print('%d %d %d' % (li[0], li[1], li[2]))

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

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

a.sort()

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

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

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

for j in range(3):
    for i in range(2):
        if unsort_list[i] > unsort_list[i+1]:
            unsort_list[i], unsort_list[i+1] = unsort_list[i+1], unsort_list[i]
print(*unsort_list)

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

for i in range(1,10):
    if a>b:
        a,b = b,a
    elif b>c:
        b,c = c,b
    elif a>b:
        a,b = b,a
    else :
        pass
print(a,b,c)

Solution (Python):
input_line = list(map(int, input().split()))
input_line = sorted(input_line)
for i in input_line:
    if i == input_line[len(input_line)-1]:
        print(i)
    else:
        print(i, end=" ")

Solution (Python):
l = [int(s) for s in input().split()]
l.sort()
print('%d %d %d'%(l[0], l[1], l[2]))

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

Solution (Python):
a,b,c = map(int,input().split())
if 1 <= a and a <= 10000 and 1 <= b and b <= 10000 and 1 <= c and c <= 10000:
    if a <= b and b <= c: 
        d = a
        e = b
        f = c
    elif a <= c and c <= b: 
        d = a
        e = c
        f = b
    elif b <= a and a <= c: 
        d = b
        e = a
        f = c
    elif b <= c and c <= a: 
        d = b
        e = c
        f = a
    elif c <= a and a <= b: 
        d = c
        e = a
        f = b
    elif c <= b and b <= a: 
        d = c
        e = b
        f = a
    print(str(d) + " " + str(e) + " " + str(f))

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

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

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

Solution (Python):
def test():

	i = list(map(int,input().split()))
	if i[0] < i[1]:
		if i[2] < i[0]:
			print(f"{i[2]} {i[0]} {i[1]}")
		elif i[1] < i[2]:
			print(f"{i[0]} {i[1]} {i[2]}")
		else:
			print(f"{i[0]} {i[2]} {i[1]}")
	else:
		if i[2] < i[1]:
			print(f"{i[2]} {i[1]} {i[0]}")
		elif i[0] < i[2]:
			print(f"{i[1]} {i[0]} {i[2]}")
		else:
			print(f"{i[1]} {i[2]} {i[0]}")

if __name__ == "__main__":
	test()

Solution (Python):


x = list(map(int, input().split()))
lenx = len(x)
for i in range(lenx):
    j = lenx - 2
    while i <= j:
        if x[j] > x[j + 1]:
            temp = x[j]
            x[j] = x[j + 1]
            x[j + 1] = temp
        j -= 1
for i in range(lenx):
    print(x[i], end = '')
    if i < lenx - 1:
        print(' ', end = '')
print('')

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


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

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

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

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

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

Solution (Python):
a, b, c = map(int, input().split())
print(" ".join([str(i) for i in sorted([a, b, c])]))

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

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()))
A = sorted(A)
a,b,c =A[0],A[1],A[2] 
print("{} {} {}".format(a, b, c))

Solution (Python):
array = input().split(' ')
array.sort()
print(array[0]+' ' +array[1]+' ' +array[2])

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

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

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

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

Solution (Python):
import sys
nums = list(sorted(map(lambda x: int(x), sys.stdin.readline().split(' '))))

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

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

Solution (Python):
l = input().split(' ')
l = sorted(l)

ans = ""
for i in range(len(l)):
    ans += " " + str(l[i])
ans = ans.lstrip()
print(ans)

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

Solution (Python):
s = input().split()
list = []
list.append(int(s[0]))
list.append(int(s[1]))
list.append(int(s[2]))



for i in range(2):
    for j in range(2):
        if list[j]>list[j+1]:
            swap = list[j]
            list[j] = list[j+1]
            list[j+1] = swap

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

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

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

Solution (Python):
l=input().split()
a=int(l[0])
b=int(l[1])
c=int(l[2])
if a>b:
    a,b=b,a
if b>c:
    b,c=c,b
if a>b:
    a,b=b,a
print(f"{a} {b} {c}")

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

l.sort()
print(" ".join(map(str, l)))

Solution (Python):
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("{} {} {}".format(abc[0], abc[1], abc[2]))

Solution (Python):
print(*sorted(list(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,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(str(a)+" "+str(b)+" "+str(c))

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):
nums = list(map(int, input().split()))
for i in range(len(nums)-1,0,-1):
    for j in range(i):
        if nums[j] > nums[j+1]:
            nums[j], nums[j+1] = nums[j+1], nums[j]
print(' '.join(str(n) for n in nums))

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, end=' ')
print(b, end=' ')
print(c)

Solution (Python):
x = input().split()
x.sort()
a, b, c = [str(x) for x in x]
print(a+" "+b+" "+c)

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

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

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

Solution (Python):
print(*sorted(int(x) for x in input().split()))

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

elif b <= a and a <= c:
 print(f"{b} {a} {c}")

elif b <=  c and c <= a:
 print(f"{b} {c} {a}")

elif a <= c and c <= b:
 print(f"{a} {c} {b}")

elif c <= a and a <= b:
 print(f"{c} {a} {b}")

elif c <= b and b <= a:
 print(f"{c} {b} {a}")

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

elif b <= a and a <= c:
 print(f"{b} {a} {c}")

elif b <=  c and c <= a:
 print(f"{b} {c} {a}")

elif a <= c and c <= b:
 print(f"{a} {c} {b}")


elif c <= a and a <= b:
 print(f"{c} {a} {b}")

elif c <= b and b <= a:
 print(f"{c} {b} {a}")

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

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

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

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

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

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

li.sort()

print(*li)

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

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

nums = sorted(nums)
print("{0[0]} {0[1]} {0[2]}".format(nums))

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

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

Solution (Python):
in_data=input()

in_list=[]

in_list=in_data.split(" ")

in_list[0]=int(in_list[0])
in_list[1]=int(in_list[1])
in_list[2]=int(in_list[2])


if in_list[0]<=in_list[1] and in_list[1]<=in_list[2] :

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

elif in_list[0]<=in_list[1] and in_list[2]<=in_list[1]:
    
    print(str(in_list[0])+" "+str(in_list[2])+" "+str(in_list[1]))
    
elif in_list[1]<=in_list[0] and in_list[0]<=in_list[2]:
    print(str(in_list[1])+" "+str(in_list[0])+" "+str(in_list[2]))

elif in_list[1]<=in_list[2] and in_list[2]<=in_list[0]:
    print(str(in_list[1])+" "+str(in_list[2])+" "+str(in_list[0]))

elif in_list[2]<=in_list[0] and in_list[0]<=in_list[1]:
    
    print(str(in_list[2])+" "+str(in_list[0])+" "+str(in_list[1]))

elif in_list[2]<=in_list[1] and in_list[1]<=in_list[0]:
    
    print(str(in_list[2])+" "+str(in_list[1])+" "+str(in_list[0]))

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

lst.append(a)
lst.append(b)
lst.append(c)

lst.sort()

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

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

Solution (Python):
if __name__ == "__main__":
    nums = input().split()
    print(" ".join(sorted(nums)))

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

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

if b > c:
  x=b
  b=c
  c=x

if a > b:
  x=b
  b=a
  a=x

if b > c:
  x=b
  b=c
  c=x

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

Solution (Python):
n = [int(s) for s in input().split()]
n = sorted(n)
print(str(n[0]) + " " + str(n[1]) + " " + str(n[2]))

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

n = sorted(n)

print(str(n[0]) + ' ' + str(n[1]) + ' ' + str(n[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=sorted(map(int,input().split()))

print(a,b,c)

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

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

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

Solution (Python):
a,b,c = map(int,input().split())
K = []
K.append(a)
K.append(b)
K.append(c)
K.sort()
print(K[0],K[1],K[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(str(c)+' '+str(b)+' '+str(a))

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

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

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

max_value = a
min_value = b

if a < b:
    max_value = b
    min_value = a
if c > max_value:
    middle_value = max_value
    max_value = c

elif c < min_value:
    middle_value = min_value
    min_value = c
else:
    middle_value = c
    
print(min_value, middle_value, max_value)

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

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


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

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

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

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

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

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

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

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

li.sort()

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

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

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

Solution (Python):
a = list(map(int, input().split()))
a.sort()
for i in range(3):
    a[i]=str(a[i])
print(" ".join(a))

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

Solution (Python):
A=input().split()
l_n_int = [int(n) for n in A]

l_n_int.sort()

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

Solution (Python):
l = sorted(list(map(int, input().split())))
for i in range(len(l) - 1): print(l[i], end = " ")
print(l[-1])

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

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

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

Solution (Python):
li = list(map(int,input().split()))
d = max(li)
e = min(li)
li.remove(d)
li.remove(e)
f = li[0]
print(e,f,d)

Solution (Python):
s = [int(i) for i in input().split()]
s = sorted(s)
s = [str(i) for i in s]
print(" ".join(s))

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

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

N.sort()

print(N[0],N[1],N[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 = input().split()
org_list = [a, b, c]
org_list.sort()
s =' '.join(org_list)
print(s)

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

Solution (Python):
print(' '.join(sorted(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):
l = input().split()
l[0] = int(l[0])
l[1] = int(l[1])
l[2] = int(l[2])
l.sort()
print(f"{l[0]} {l[1]} {l[2]}")

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

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

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

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

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

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




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

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

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

Solution (Python):
L= input().split( )
a=int(L[0])
b=int(L[1])
c=int(L[2])
if a>b:
    a,b=b,a
if a>c:
    a,b,c=c,a,b
if b>c:
    b,c=c,b
print(f"{a} {b} {c}")

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(f"{a} {b} {c}")
        elif a < b or a ==b:
            print(f"{a} {b} {c}")
    elif b < c or b == c:
            print(f"{a} {b} {c}")
elif a < b :
    if b > c:
        b, c = c, b
        if a > b :
            a, b = b, a
            print(f"{a} {b} {c}")
        elif a < b or a == b:
            print(f"{a} {b} {c}")
    elif b < c or b == c:
        print(f"{a} {b} {c}")

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

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

list_num.sort()

print(f"{list_num[0]} {list_num[1]} {list_num[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):
numbers = list(map(int,input().split()))

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

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

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

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

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

Solution (Python):
[x,y,z] = input().split(" ")

a = int(x)
b = int(y)
c = int(z)

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

numbers.sort()

print(*numbers)

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

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

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

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

Solution (Python):
a, b, c = map(int, input().split())
l = sorted([a, b, c])
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):
a,b,c = map(int, input().split())
A = min(a, min(b,c))
C = max(a, max(b,c))
B = a+b+c-A-C
print(A,B,C)

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

Solution (Python):
x, y, z=map(int, input().split())
if x < y < z:
  print(x, y, z)
elif x < z < y:
  print(x, z, y)
elif y < x < z:
  print(y, x, z)
elif y < z < x:
  print(y, z, x)
elif z < x < y:
  print(z, x, y)
elif z < y < x:
  print(z, y, x)
elif x == z and z < y:
  print(x, z, y)
elif x == y and y < z:
  print(x, y, z)
elif y == z and z < x:
  print(y, z, x)
else:
  print(x, y, z)

Solution (Python):
x, y, z = map(int, input().split())
if x > y:
  x,y = y,x
if x > z:
  x,z = z,x
if y > z:
  y,z = z,y
print(x,y,z)

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

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

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

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

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

Solution (Python):
nums = sorted(map(int, input().split(" ")))

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

Solution (Python):
a, b, c = (int(x) for x in input().split())
if(a < c < b or a == c < b):
    print(a, c, b)
elif(b < a < c or a == c > b):
    print(b, a, c)
elif(b < c < a):
    print(b, c, a)
elif(c < a < b):
    print(c, a, b)
elif(c < b < a or a == b > c or b == c < a):
    print(c, b, a)
else:
    print(a, b, c)

Solution (Python):
a = list(map(int, input().strip().split()))
N = len(a)
a.sort()
for j in range(0, N-1):
    print(a[j], end=" ")
print(a[N-1])

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

a,b,c=(int(x) for x in input().split())
x=0
if a>b:
    x=a
    a=b
    b=x
if a>c:
    x=a
    a=c
    c=x
if b>c:
    x=b
    b=c
    c=x
    
print("{} {} {}".format(a,b,c))

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

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

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())
lst = [a, b, c]
lst.sort()
print(lst[0], lst[1], lst[2])

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

numberList.sort()
print(" ".join(str(e)for e in numberList))

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:
  x = a
  a = b
  b = x
if b>c:
  y = b
  b = c
  c = y
if a>b:
  z = a
  a = b
  b = z

print(a, b, c)

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

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

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

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

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

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

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

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

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

Solution (Python):

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

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

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

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

lst.sort()
print(*lst)

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

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

Solution (Python):
a, b, c = map(int, input().split())
s = 0
g = 0
if a < b:
    s = a
    g = b
else:
    s = b
    g = a
if c < s:
    print(str(c) + ' ' + str(s) + ' ' + str(g))
elif g < c:
    print(str(s) + ' ' + str(g) + ' ' + str(c))
else:
    print(str(s) + ' ' + str(c) + ' ' + str(g))

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

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

Solution (Python):

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

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

D.sort()

ans = " ".join(map(str,D))

print(ans)

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

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

Solution (Python):
if __name__ == '__main__':
	data = input().split()
	data.sort()
	print(data[0]+" "+data[1]+" "+data[2])