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


def main():
    input_str = sys.stdin.readline()
    list1 = [int(i) for i in input_str.split(' ')]
    list1.sort()
    print('{0[0]} {0[1]} {0[2]}'.format(list1))
    return


if __name__ == '__main__':
    main()

Solution (Python):
def max(a,b,c):
    if a >= b and a >= c:
        return a
    if b >= a and b >= c:
        return b
    else:
        return c

def min(a,b,c):
    if a <= b and a <= c:
        return a
    if b <= a and b <= c:
        return b
    else:
        return c

def mid(a,b,c):
    if (b-a)*(c-a) <= 0:
        return a
    if (a - b) * (c - b) <= 0:
        return b
    else:
        return c


s = input()
s = s.split()
n = []

for i in s:
    n.append(int(i))

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

print(min(a,b,c),mid(a,b,c),max(a,b,c))

Solution (Python):
def max(a,b,c):
    if a >= b and a >= c:
        return a
    if b >= a and b >= c:
        return b
    else:
        return c

def min(a,b,c):
    if a <= b and a <= c:
        return a
    if b <= a and b <= c:
        return b
    else:
        return c

def mid(a,b,c):
    if (b-a)*(c-a) <= 0:
        return a
    if (a - b) * (c - b) <= 0:
        return b
    else:
        return c


s = input()
s = s.split()
n = []

for i in s:
    n.append(int(i))

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

print(min(a,b,c),mid(a,b,c),max(a,b,c))

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

Solution (Python):
a = input().split()
v = 2
while int(v) >= 1:
    if int(a[int(v)-1]) < int(a[int(v)]):
        pass
    else:
        b = int(a[int(v)-1])
        a[int(v)-1] = int(a[int(v)])
        a[int(v)] = int(b)
    v = int(v) - 1

if int(a[1]) < int(a[2]):
    pass
else:
    b = int(a[1])
    a[1] = int(a[2])
    a[2] = int(b)
print('%d %d %d' % (int(a[0]),int(a[1]),int(a[2])))

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

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

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

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

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

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

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

Solution (Python):




N=input().split()
N.sort()
print(" ".join(N))

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

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

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

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

for i in range(len(x)):
    x[i] =int(x[i])

a,b,c=x
while a> b or b > c or a > c:
    if a > b:
        a,b = b,a
    if b > c:
        b,c = c,b
    if a>c:
        a,c=c,a
print(a,b,c)

Solution (Python):
tmp = map(int, raw_input().split())
tmp.sort()
for i in tmp:
    print i,

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

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

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

Solution (Python):
array = list(map(int, input().split()))
num = 3
def print_array():
    for i in range(num):
        if i != num-1:
            print(array[i], end=' ')
        else:
            print(array[i])

for i in range(num):
    insert = array[i]
    j = 0
    while array[j] < insert:
        j+=1
    for k in range(i, j, -1):
        array[k] = array[k - 1]
    array[j] = insert
print_array()

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

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

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

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

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


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

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

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

print(str(a), str(b), str(c))

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

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

Solution (Python):
abc = input()
list_abc = abc.split(" ")
min = int(list_abc[0])
mid = int(list_abc[1])
max = int(list_abc[2])

for index in range(3):
    cur_num = int(list_abc[index])
    if max < cur_num:
        list_abc[2] = str(cur_num)
        list_abc[index] = str(max)
        max = cur_num
min = int(list_abc[0])
mid = int(list_abc[1])
if mid < min :
    list_abc[0] = str(mid)
    list_abc[1] = str(min)
min = int(list_abc[0])
mid = int(list_abc[1])
print(str(min) + " " + str(mid) + " " + str(max))
max = int(list_abc[2])

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

Solution (Python):
vs = sorted(list(map(int, input().split())))
for v in vs:
    end = '\n' if v == vs[-1] else ' '
    print(v, end=end)

Solution (Python):
a = input().split(" ")
temp = a[0]
if a[0] > a[1]:
    temp = a[1]
    a[1] = a[0]
    a[0] = temp
if a[1] > a[2]:
    temp = a[2]
    a[2] = a[1]
    a[1] = temp
if a[0] > a[1]:
    temp = a[1]
    a[1] = a[0]
    a[0] = temp
print(str(a[0]) +" " + str(a[1]) + " " + str(a[2]))

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

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

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

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

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):
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):
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(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):
import sys

x=sys.stdin.readline()

arr=x.split()

arrInt=list()

for i in arr:
   
    arrInt.append(int(i))


    arrInt.sort()
print(' '.join(map(str,arrInt)))

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

Solution (Python):
a = sorted(inpuｔ().split())
print(a[0], a[1], a[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):
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):
from sys import stdin

int3 = sorted([int(x) for x in stdin.readline().rstrip().split()])
print(*int3)

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

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

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):
n = map(str, (sorted(map(int, input().split()))))
print(" ".join(n))

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

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

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

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

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

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

Solution (Python):

'''
l = input().split()

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

Solution (Python):
a = list(map(int, input().split()))
for i in range(1,len(a)):
    v = a[i]
    j = i - 1
    while j >= 0 and a[j] > v:
        a[j+1] = a[j]
        j -= 1
    a[j+1] = v

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

Solution (Python):
def main():
    num=map(int,input().split())
    print(" ".join([str(x) for x in sorted(num)]))

if __name__=='__main__':
    main()

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 = input().split()
a = int(a)
b = int(b)
c = int(c)
tmp = 0

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

if b < a:
  tmp = a
  a = b
  b = tmp

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

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

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

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

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

Solution (Python):
a,b,c=sorted([int(x) for x in 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):
s = input().rstrip().split(' ')
a = int(s[0])
b = int(s[1])
c = int(s[2])
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):
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):
a,b,c = map(int, input().split())
if(a>b):
  x=a
  a=b
  b=x 
else:
  pass

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

d = 0
if a > b:
  d = a
  a = b
  b = d
else: pass

d = 0
if b > c:
  d = b
  b = c
  c = d
else: pass

d = 0
if a > b:
  d = a
  a = b
  b = d
else: pass

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

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

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

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

tmp = 0

for i in range(2):
    if a > b:
        tmp = a
        a = b
        b = tmp
    if b > c:
        tmp = b
        b = c
        c = tmp
    if a > c:
        tmp = a
        a = c
        c = tmp

print(a, b, c)

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

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

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

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

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

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

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

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

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

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

for i in range(1,num):
	v = A[i]

	for j in range(i-1,-1,-1):
		if A[j] > v:
			
			A[j+1] = A[j]
		else:
			
			A[j+1] = v
			break
	else:
		A[0] = v

list2 = [str(k) for k in A]
print(" ".join(list2))

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

Solution (Python):
nums = [int(e) for e in input().split()]
for i in range(len(nums)):
    for j in range(i):
        if nums[i]<nums[j]:
            a = nums[i]
            nums[i] = nums[j]
            nums[j] = a

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

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

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

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

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

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

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

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

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

print(a,b,c)


"""
A = list(map(int, input().split()))
A.sort()
for a in A:
    print(a, end=' ')
"""

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

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

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

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

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

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

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

Solution (Python):
a,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):
from sys import stdin

arr = [int(n) for n in stdin.readline().rstrip().split()]

arr.sort()

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

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

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

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

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

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

for a in range(3):
    if( i[ x[a][0] ] > i[ x[a][1] ]):
        swap=i[ x[a][0] ]
        i[ x[a][0] ]= i[ x[a][1] ]
        i[ x[a][1] ]=swap
        

print(i[0],end=' ')
print(i[1],end=' ')
print(i[2],end='\n')

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

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

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

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

Solution (Python):
a,b,c = map(int, input().split())
A = min(min(a, b),c)
C = max(max(a,b),c)
B = (a+b+c) - (A+C)
print(A, B, C)

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

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

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

Solution (Python):
def aizu003():
    xs = map(int,raw_input().split())
    xs.sort()
    for i in range(0,3):
        print xs[i],

aizu003()

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):
[a,b,c] = raw_input().split(' ')
a = int(a)
b = int(b)
c = int(c)
t = 0
if a > b:
    t = a
    a = b
    b = t
if b > c:
    t = b
    b = c
    c = t
if a > b:
    t = a
    a = b
    b = t
print a,b,c

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

n.sort()

print n[0],
print n[1],
print n[2]

Solution (Python):
a = map(int, raw_input().split())
a.sort()
for i in range(len(a)):
    print a[i],

Solution (Python):

import sys


file = sys.stdin

data = list( map(int, file.readline().split()) )

if data[0] > data[2] :
    data[2],data[0] = data[0],data[2]

if data[0] > data[1] :
    data[1], data[0] = data[0], data[1]

if data[1] > data[2] :
    data[2],data[1] = data[1], data[2]

out = " ".join(map(str, data))
print(out)

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

data.sort()

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

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

Solution (Python):
for i, a in enumerate(sorted(list(map(lambda a : int(a), input().split(" "))))):
	if i == 0:
		print("%d" % a, end ="")
	else:
		print(" %d"% a, end ="")
print()

Solution (Python):
ls=[int(i) for i in raw_input().split()]
ls.sort()
for i in range(3):
    print ls[i],

Solution (Python):
input = map(int, raw_input().split())
input.sort()
for i in input:
	print i,

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

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

Solution (Python):
n = map(int,raw_input().split())
for i in range(0,3):
	for k in range(i,3):
		if n[i]>n[k]:
			temp = n[i]
			n[i] = n[k]
			n[k]= temp
for j in range(0,3):
	print str(n[j]),

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):
number = raw_input().split(" ")
a, b, c = int(number[0]), int(number[1]), int(number[2])
while True:
    if a > b:
        tmp = a
        a = b
        b = tmp
    elif b > c:
        tmp = b
        b = c
        c = tmp
    else:
        print str(a) + " " + str(b) + " " + str(c)
        break

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

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

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

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

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

Solution (Python):
print('{} {} {}'.format(*sorted(map(int, input().split()))))

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

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

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

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

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

Solution (Python):
a, b, c = map(int, raw_input().split())
list_ = [a, b, c]
list_.sort()
for x in list_:
	print x,

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

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

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

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):
x = input().split(' ')
x.sort
a = int(x[0])
b = int(x[1])
c = int(x[2])

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

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) = input().rstrip().split(' ')
a = int(a)
b = int(b)
c = int(c)

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) = input().rstrip().split(' ')
a = int(a)
b = int(b)
c = int(c)

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) = input().rstrip().split(' ')
a = int(a)
b = int(b)
c = int(c)

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

"""
Created on Fri Jan 30 16:38:31 2015

@author: hirose
"""



n = map(int, raw_input().split())

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

for i in range(3):
    for i in range(2):
        if(n[i] > n[i+1]):
            temp = n[i]
            n[i] = n[i+1]
            n[i+1] = temp

print n[0], n[1], n[2]

Solution (Python):
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 =raw_input().split()
a,b,c = map(int,(a,b,c))
ls = list((a,b,c))
ls.sort()
string_ans=''
for k in ls:
    string=''
    string = str(k)+" "
    string_ans = string_ans + string
print string_ans.strip()

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

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

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

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

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):
import sys
l = [int(i) for i in sys.stdin.readline().split()]
l.sort()
print(" ".join(map(str, l)))

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

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

Solution (Python):
a,b,c = map(int, raw_input().split())
value = [a,b,c]
value.sort()
value_str = map(str, value)
print " ".join(value_str)

Solution (Python):

import sys
 
abc=sys.stdin.readline()
nums=abc.split( ' ' )
for i in range( len( nums) ):
	nums[i] = int( nums[i] )
nums.sort()
print( "{} {} {}".format( nums[0], nums[1], nums[2] ) )

Solution (Python):


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

Solution (Python):
if __name__ == '__main__':
    a, b, c = sorted([int(i) for i in input().split()])
    print(a, b, c)

Solution (Python):



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

Solution (Python):
a = raw_input()
for i, b in enumerate(a.split()):
	if i==0:
		x=int(b)
	elif i==1:
		y=int(b)
	else:
		z=int(b)
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
else:
	print z,y,x

Solution (Python):
n=map(int,raw_input().split())
if n[0]<=n[1]<=n[2]:
	a=n[0]
	b=n[1]
	c=n[2]
elif n[0]<=n[2]<=n[1]:
	a=n[0]
	b=n[2]
	c=n[1]
elif n[1]<=n[0]<=n[2]:
	a=n[1]
	b=n[0]
	c=n[2]
elif n[1]<=n[2]<=n[0]:
	a=n[1]
	b=n[2]
	c=n[0]
elif n[2]<=n[0]<=n[1]:
	a=n[2]
	b=n[0]
	c=n[1]
else:
	a=n[2]
	b=n[1]
	c=n[0]
print a,b,c

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

if a <= b:
    if b <= c:
        print("{0} {1} {2}".format(a, b, c))
    elif c <= a:
        print("{0} {1} {2}".format(c, a, b))
    else:
        print("{0} {1} {2}".format(a, c, b))

else:
    if a <= c:
        print("{0} {1} {2}".format(b, a, c))
    elif c <= b:
        print("{0} {1} {2}".format(c, b, a))
    else:
        print("{0} {1} {2}".format(b, c, a))

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

Solution (Python):


x = map(int, raw_input().split())

for e in sorted(x):
	if sorted(x).index(e) == len(x) - 1:
		print e
		break
	print e,

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

Solution (Python):
import sys

nums = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
nums = sorted( nums )
print( "{:d} {:d} {:d}".format( nums[0], nums[1], nums[2] ) )