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):
val = input().split()
a = int(val[0])
b = int(val[1])
c = int(val[2])
p = sorted([a,b,c])

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

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

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

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

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

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

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

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

arr = [a, b, c]







arr.sort()

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

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

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

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

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

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

print(a , b , c)

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

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

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

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

print(a, b, c)

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):
ls = input().split()
l = [int(s) for s in ls]
if l[0]>l[1]:
    l[0],l[1]=l[1],l[0]
if l[1]>l[2]:
    l[1],l[2]=l[2],l[1]
if l[0]>l[1]:
    l[0],l[1]=l[1],l[0]
print("%d %d %d"% (l[0],l[1],l[2]))

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

threeInt.sort()

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

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

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

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

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

Solution (Python):

















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

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

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

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

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

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

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

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

print(a, b, c)

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

num_list = sorted(num_list)
print(num_list[0], num_list[1], num_list[2])

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

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

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

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

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

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

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

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

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

l.sort()

print("{} {} {}".format(l[0], l[1], l[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(int, input().split())
if a > b:
    a , b = b , a
else:
    pass
if b > c:
    b , c = c , b
else:
    pass
if a > b:
     a , b = b , a
else:
    pass
print(a,b,c)

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

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

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

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

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

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

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

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

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

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

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

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

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):
line = list(map(int,input().split()))
a,b,c=line[0],line[1],line[2]
if a>b:
    a,b = b,a

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

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

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

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

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

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

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

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

print(n1, n2, n3)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

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

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

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

print(" ".join(N))

Solution (Python):
import sys

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

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

  print(*sorted(li))


if __name__ == '__main__':
  main()

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

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

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

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

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

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

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

X.sort()

print(*X)

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

Solution (Python):
s = list(map(int, input().split()))
s.sort(reverse=False)
print(s[0], s[1], s[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 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):
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):
arr = map(int, input().split(' '))
arr = sorted(arr)
print(' '.join(map(str, arr)))

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

if __name__ == '__main__':
    test()

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

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

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

print(a,b,c)

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

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

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

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

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

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

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

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

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

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

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

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

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

list1 = [a, b, c]

list1.sort()

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

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

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())
tmp = 0
if b > c:
    tmp = b
    b = c 
    c = tmp 

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

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

print(a, b, c)

Solution (Python):
a=list(map(int, input().split()))
for i in range(1,len(a)):
    tmp=a[0]
    if tmp>a[i]:
        tmp=a[i]
        a[i]=a[0]
        a[0]=tmp
if a[1]>a[2]:
    tmp=a[2]
    a[2]=a[1]
    a[1]=tmp
print(a[0],a[1],a[2])

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

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

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

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

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

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

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

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

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(f"{abc[0]} {abc[1]} {abc[2]}")

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


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


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

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

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

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

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

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

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

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

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

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

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

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

print(*A)

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

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

num = sort(num)

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

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

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

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

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

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

l_sorted = sorted(l)

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

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

Solution (Python):



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

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

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

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

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

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

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

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

Solution (Python):
number_list = list(map(int, input().split()))
new_list = sorted(number_list)
n=[str(a) for a in new_list]
n=" ".join(n)
print(n)

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

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

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

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

arr.sort()

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


print(ans[:-1])

Solution (Python):
import math
import copy
from copy import deepcopy
import sys
import fractions

from functools import reduce

import heapq
import collections
import itertools
sys.setrecursionlimit(100001)






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




data = getInputListInt()
data.sort()

print(*data, sep=" ")

Solution (Python):

s = list(map(int,input().split()))
s.sort()
ans = list(map(str,s))
print(" ".join(ans))

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

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

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

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

tablet.sort()

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

Solution (Python):

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

Solution (Python):

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)

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

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

Solution (Python):



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


num_list = sorted(num_list)
num_list = list(map(str, num_list))


print(" ".join(num_list))

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(input().split())
print(a, b, c)

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

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

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

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

Solution (Python):
input_value = input()

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

numbers.sort()

print(*numbers)

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

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

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

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

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

lis.sort()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline

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

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

print(' '.join(out))

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

Solution (Python):

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

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

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

X = [a,b,c]

Y = sorted(X)

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

Solution (Python):


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

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

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

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

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

print(ans2[1:])

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

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

Solution (Python):

import sys


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)

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

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

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

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

l.sort()

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

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

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

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