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):
if __name__ == '__main__':
    a, b, c = map(int, raw_input().split())
    if a < b:
        if b < c:
            print a, b, c
        elif a < c:
            print a, c, b
        else:
            print c, a, b
    else:
        if a < c:
            print b, a, c
        elif b < c:
            print b, c, a
        else:
            print c, b, a

Solution (Python):
a,b,c=map(int,raw_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 str(a)+" "+str(b)+" "+str(c)

Solution (Python):
a,b,c=map(int,raw_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):
a = map(int,raw_input().split())
b,c,d = sorted(a)
print b,c,d

Solution (Python):
a,b,c=map(int,raw_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):
l = map(int, raw_input().split())
l.sort()
for i in l:
  print i,

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

Solution (Python):
sids = input()
side_list = []

side_list = [int(s) for s in sorted(sids.split(' ', ), key=lambda s: int(s), reverse=False)]

print(' '.join(map(str, side_list)))

Solution (Python):
a, b, c = map(int, raw_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(' '.join(map(str, sorted(map(int, input().split())))))

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

Solution (Python):
import sys

a = [int(i) for i in sys.stdin.readline().split(' ')]

for i in range(0, len(a)):
    for j in range(i+1, len(a)):
        if a[i] > a[j]:
            t = a[i]
            a[i] = a[j]
            a[j] = t

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

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

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

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

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

a = i[0]
b = i[1]
c = i[2]

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

Solution (Python):

a = input().split()
a_int = [int(s) for s in a]

a_sorted = sorted(a_int)
print(' '.join(map(str, a_sorted)))

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

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

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

Solution (Python):
ary = list(map(int,input().split()))
a,b,c = sorted(ary)
print('{} {} {}'.format(a,b,c))

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

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

Solution (Python):
a, b, c = sorted(list(map(int, 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(a, b, c)

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

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

Solution (Python):
l = list(map(int, input().split()))
l.sort()
print(l[0], end="")
print(" ", end="")
print(l[1], end="")
print(" ", end="")
print(l[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=map(int,input().split())
if a>b:
  n=a
  a=b
  b=n
else:
  pass
if b>c:
  n=b
  b=c
  c=n
else:
  pass
if a>b:
  n=a
  a=b
  b=n
else:
  pass
print(a,b,c)

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

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

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

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

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

Solution (Python):
number1,number2,number3=(int(x) for x in input().split())
lst=[number1,number2,number3]
answer_lst=sorted(lst)
min,med,max=(int(i) for i in answer_lst)
print(min,med,max)

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

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

A=min(a,b,c)
B=max(a,b,c)
C=a+b+c-A-B

print(A,C,B)

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

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

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

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

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

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

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

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

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):
S = input()
s = S.split()


a = list(map(int,s))
b = sorted(a)
c = list(map(str,b))

print(" ".join(c))

Solution (Python):
b = input().split()
s = [int(n) for n in b]
s.sort()
print("{0} {1} {2}".format(s[0], s[1], s[2]))

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

l.sort()

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

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

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)
elif c<=b<=a:
    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(f'{a} {b} {c}')

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

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

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

Solution (Python):
nums = list(int(x) for x in input().split())
nums.sort()
for i  in range(len(nums)):
    if i == len(nums)-1:
        print(nums[i],end ="")
    else:
        print(nums[i],end =" ")    
print()

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

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

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

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

Solution (Python):
def mapt(fn, *args):
    return tuple(map(fn, *args))


def aa(n):
    a, b, c = (sorted(n))
    print(a, b, c)


n = mapt(int, input().split(" "))
aa(n)

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

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

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

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

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

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

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

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

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

Solution (Python):
list = 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], sep=' ')

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

for i in range(len(L)):
    for j in range(len(L)-1):
        if L[j] > L[j+1]:
            L[j], L[j+1] = L[j+1], L[j]

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

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

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

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

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

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

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

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(c, b, a)
        else:
            print(b, c, 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):
li = list(map(int,input().split()))
li.sort()
print(' '.join(map(str, li)))

Solution (Python):
var=input()
var=var.split()
a=int(var[0])
b=int(var[1])
c=int(var[2])
if(1<=a<=10000 and 1<=b<=10000 and 1<=c<=10000):
    if(a<b<c):
        print(str(a)+" "+str(b)+" "+str(c))
    elif(c<a<b):
        print(str(c)+" "+str(a)+" "+str(b))
    elif(b<c<a):
        print(str(b)+" "+str(c)+" "+str(a))
    elif(a<c<b):
        print(str(a)+" "+str(c)+" "+str(b))
    elif(c<b<a):
        print(str(c)+" "+str(b)+" "+str(a))
    elif(b<a<c):
        print(str(b)+" "+str(a)+" "+str(c))
    elif(a==b and a>c):
        print(str(c)+" "+str(a)+" "+str(b))
    elif(a==b and a<c):
        print(str(a)+" "+str(b)+" "+str(c))
    elif(a==c and a>b):
        print(str(b)+" "+str(a)+" "+str(c))
    elif(a==c and a<b):
        print(str(a)+" "+str(c)+" "+str(b))
    elif(c==b and c>a):
        print(str(a)+" "+str(b)+" "+str(c))
    elif(c==b and c<a):
        print(str(b)+" "+str(c)+" "+str(a))

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()))
if a[0] > a[1]:
    a[0], a[1] = a[1], a[0]
if a[1] > a[2]:
    a[1], a[2] = a[2], a[1]
if a[0] > a[1]:
    a[0], a[1] = a[1], a[0]
print(*a)

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

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

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

Solution (Python):

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

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

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

Solution (Python):




def main():
    l = list(map(int, input().split()))
    l.sort()
    print(*l)


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
lst = list(map(int,input().split()))
if lst[0]>lst[1]:
  lst[0],lst[1] = lst[1],lst[0]
if lst[1]>lst[2]:
  lst[1],lst[2] = lst[2],lst[1]
if lst[0]>lst[1]:
  lst[0],lst[1] = lst[1],lst[0]
lst = [str(i) for i in lst]
print(" ".join(lst))

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

if a>b :
    s1 = b
    s2 = a
else:
    s1 = a
    s2 = b

if s2 > c :
    s3 = s2
    s2 = c
    
    if s1 >s2:
        s2 = s1
        s1= c
else:
    s3 = c

print(s1,s2,s3)

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

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

value.sort()
strval=(str(a) for a in value)
strval=" ".join(strval)
print(strval)

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

nums.sort()

nums = [str(x) for x in nums]

first_num = nums[0]
second_num = nums[1]
third_num = nums[2]

print(first_num + " " + second_num + " " + third_num)

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

x = min(a,b,c)
z = max(a,b,c)
y = a+b+c-x-z

print(f"{x} {y} {z}")

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

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

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

Solution (Python):
n = 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):
ls = list(map(int,input().split()))

ls.sort()


print(*ls)

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

Solution (Python):
XS = map(int, open(0).read().split())
print(" ".join(map(str, sorted(XS))))

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

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

Solution (Python):

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

Solution (Python):




def quick_sort(arr):
    if len(arr) < 2:
        return arr
    p = arr[0]
    left, right = divide(p, arr[1:])
    return quick_sort(left) + [p] + quick_sort(right)
    
def divide(p, arr):
    left, right = [], []
    for i in arr:
        if p > i:
            left.append(i)
        else:
            right.append(i)
    return left, right

arr = quick_sort(list(map(int, input().split())))
print(f'{arr[0]} {arr[1]} {arr[2]}')

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

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


a = sorted(a)

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

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

Solution (Python):
l=input().split()
a=int(l[0])
b=int(l[1])
c=int(l[2])
if a>c:
    temp=a;a=c;c=temp
    if b<a:
         temp=a;a=b;b=temp
    elif b>c:
         temp=b;b=c;c=temp
elif b<a:
    temp=a;a=b;b=temp
elif b>c:
    temp=b;b=c;c=temp
        
print(a,b,c)

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

Solution (Python):
li = [x for x in list(input().split())]
li.sort()
print(" ".join(li))

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

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

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

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

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

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

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

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

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()
l = [str(c) for c in l]
print(' '.join(l))

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

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

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

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):
val = []
val = [int(x) for x in input().split()]
for i in range(2):
    for y in range(len(val)-1):
        if val[y] > val[y+1]:
            tmp = val[y]
            val[y] = val[y+1]
            val[y+1] = tmp
print(val[0],val[1],val[2])

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

for i in range(3):
    num[i] = int(num[i])

num.sort()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
l = input().split()
l2 = []
for j in l:
    l2.append(int(j))
l2.sort()
for i in l2:
    if l2[-1] == i:
        print(i)
    else:
        print(i,end=' ')

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

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

tmp = None


if x > z:
    tmp = x
    x = z
    z = tmp
if x > y:
    tmp = x
    x = y
    y = tmp
if y > z:
    tmp = y
    y = z
    z = tmp

print(str(x) +' ' + str(y) + ' ' + str(z))

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

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

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

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

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)
1 <=a,b,c <= 10000

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

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

Solution (Python):

numbers = list(map(int,input().split())) 
numbers.sort() 
print(' '.join(map(str, numbers)))

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())
d=[]
d=[a,b,c]
d.sort()
e=map(str,d)
result=" ".join(e)
print(result)

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

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

if i[0] > i[1]:
    i[0], i[1] = i[1], i[0]
    
    
    if i[1] > i[2]:
        i[1], i[2] = i[2], i[1]
        
        if i[0] > i[1]:
            i[0], i[1] = i[1], i[0]
        
            
        
    
elif i[1] > i[2]:
    i[1], i[2] = i[2], i[1]
     
    if i[0] > i[1]:
        i[0], i[1] = i[1], i[0]
        
    
print (i[0], i[1], i[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())
def change(a, b):
    if a > b:
        tmp = a
        a = b
        b = tmp
        return a, b
    else:
        return a,b

a,b = change(a,b)
b,c = change(b,c)
a,b = change(a,b)

print(a, b, c)

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

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

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

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

a.sort()

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

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

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

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

Solution (Python):
a = [ int(x) for x in input().split()]
a = sorted(a)
print(str(a[0])+' '+str(a[1])+' '+str(a[2]))

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

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

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

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

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

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

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

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

print(*ListA)

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

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

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

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

Solution (Python):
a,b,c = map(int,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))
else:
    print (str(c)+" "+str(b)+" "+str(a))