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

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

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

Solution (Python):
class itp1_2c:
    def sort(self,f,s,t):
        if(f>s):
            tmp=f
            f=s
            s=tmp
        if(s>t):
            tmp=s
            s=t
            t=tmp
        if(f>s):
            tmp=f
            f=s
            s=tmp
        print(str(f)+" "+str(s)+" "+str(t))     
if __name__=="__main__":
    num=map(int,raw_input().split(" "))
    run=itp1_2c()
    run.sort(num[0],num[1],num[2])

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

Solution (Python):
print ' '.join(sorted(raw_input().split(' ')))

Solution (Python):
print ( "%s %s %s" % tuple ( sorted ( map ( int, input ( ).split ( ) ) ) ) )

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

Solution (Python):


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

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

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

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

if a > b:
     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 = input().split()
a.sort()
a = ' '.join(a)
print(a)

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

Solution (Python):
import sys







data = sys.stdin.readline()
data = data.rstrip()



data = data.split()






for i in range(3):
    j = i + 1
    for j in range(j,3):

        
        if data[i] > data[j]:
           
           temp = data[i]
           data[i] = data[j]
           data[j] = temp


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

Solution (Python):


inputs = raw_input().rstrip().split()
nums = [int(x) for x in inputs]
print ' '.join([str(x) for x in sorted(nums)])

Solution (Python):

if __name__ == "__main__":
    nums = map( int, raw_input().split())
    nlen = len( nums )
    nlast = nlen - 1
    while 0 < nlast:
        j = 0
        while j < nlast:
            if nums[j] > nums[j+1] :
                d = nums[j+1]
                nums[j+1] = nums[j]
                nums[j] = d
            j += 1
        nlast -= 1

    nlast = nlen - 1
    i = 0
    while i < nlen:
        if i != nlast:
            print nums[i],
        else:
           print nums[i]
        i += 1

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

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

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

num = input().split()
 
a = int(num[0])
b = int(num[1])
c = int(num[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):
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[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):
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[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):
n = input().split()
a = int(n[0])
b = int(n[1])
c = int(n[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):
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[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):
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[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):
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[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 = map(int, raw_input().split())
n = [a,b,c]
n.sort()
for i in n:
    print i,

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

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

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

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

Solution (Python):
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[2])
 
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):
arr = map(int, raw_input().split())
arr.sort()
str_arr = map(str,arr)
print(" ".join(str_arr))

Solution (Python):
n = input().split()
a = int(n[0])
b = int(n[1])
c = int(n[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()
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):
if __name__ == '__main__':
    a, b, c = sorted([int(i) for i in input().split()])
    print(a, b, c)

Solution (Python):



list = sorted(map(int, raw_input().split()))
for i in list:
    print i,

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

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

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

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

print a, b, c

Solution (Python):
input = raw_input().split(" ")
list = []
for value in input:
  list.append(int(value))

length = len(list)
i = 0
while i < length - 1:
  min = list[i]
  j = i + 1
  while j < length:
    if list[i] > list[j]:
      temp = list[i]
      list[i] = list[j]
      list[j] = temp
    j += 1
  i += 1

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

Solution (Python):
nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[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):

nums = input().split()
a = int(nums[0])
b = int(nums[1])
c = int(nums[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):
l = input().split()
print(' '.join(map(str, sorted(l))))

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

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

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

a, b, c = map(list.append, raw_input().split())
list = sorted(list)

for i in range(3):
	print list[i],

Solution (Python):
import sys
prm = sys.stdin.readline()
prm = prm.split()
prm.sort()
a = int(prm[0])
b = int(prm[1])
c = int(prm[2])

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

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):
l = input().split(' ')
l = [int(i) for i in l]
l = sorted(l)
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 = input().split()
print(' '.join(sorted(a)))

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

for i in range(len(a)):
    b.append(a.pop(a.index(min(a))))

print(" ".join([str(i) for i in b]))

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

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

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

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

for i in range(len(lis)):
    j = i + 1
    for j in range(j, len(lis)):
        if lis[j] < lis[i]:
            tmp = lis[j]
            lis[j] = lis[i]
            lis[i] = tmp
print "%s %s %s" %(lis[0], lis[1],lis[2])

Solution (Python):
s=input()
x=list(map(int,s.split()))
x.sort()
print("%d %d %d"%tuple(x))

Solution (Python):
num = raw_input()
num = num.split()
num.sort()

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

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

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

numbers.sort()

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

Solution (Python):
S =raw_input()
L = S.split()

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

a = int(a)
b = int(b)
c = int(c)
l = [a,b,c]
    
min_1 = min(a,b,c)

l.remove(min_1)

min_2 = min(l)

l.remove(min_2)

min_3 = l[0]

min_1 = str(min_1)
min_2 = str(min_2)
min_3 = str(min_3)

print min_1+' '+min_2+' '+min_3

Solution (Python):
x = raw_input().split()
for i in range(2):
    if float(x[i]) > float(x[i+1]):
        x[i],x[i+1]=x[i+1], x[i]
    if float(x[0]) > float(x[1]):
        x[0],x[1]=x[1], x[0]
print " ".join(x)

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

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

Solution (Python):
numbers = []
n = raw_input()
numbers = n.split(" ")
for i in range(3):
	numbers[i] = int(numbers[i])
flag = 1
while flag:
	flag = 0
	for i in range(2, 0, -1):
		if numbers[i] < numbers[i - 1]:
			numbers[i], numbers[i - 1] = numbers[i - 1], numbers[i]
			flag = 1
print ' '.join([str(a) for a in numbers])

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

Solution (Python):
a = [i for i in input().split()]
b = []
 
for i in range(len(a)):
    b.append(a.pop(a.index(min(a))))
 
print(" ".join([str(i) for i in b]))

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

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

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

l.sort()

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

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

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

Solution (Python):
num = map(int,raw_input().split())
for x in xrange(0,2):
    for i in xrange(0,2):
        if num[i] > num[i+1] :
            tmp = num[i]
            num[i] = num[i+1]
            num[i+1] = tmp
strnum = map(str,num)
print strnum[0]+" "+strnum[1]+" "+strnum[2]

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

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

Solution (Python):



var = raw_input().split()

var = map(int, var)

if var[0] > var[1]:
	tmp = var[0]
	var[0] = var[1]
	var[1] = tmp
	
if var[0] > var[2]:
	tmp = var[0]
	var[0] = var[2]
	var[2] = tmp
	
if var[1] > var[2]:
	tmp = var[1]
	var[1] = var[2]
	var[2] = tmp

print var[0],var[1],var[2]

Solution (Python):


input = map(int, raw_input().split())
input.sort()

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

Solution (Python):



raw_list = sorted(map(int, raw_input().split()))
print("%d %d %d") % (raw_list[0], raw_list[1], raw_list[2])

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



print" ".join(map(str,sorted(a)))

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

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

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

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

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

Solution (Python):
in_str = raw_input().split()
nums = []
for s in in_str:
    nums.append(int(s))
nums.sort()
for n in nums:
    print n,

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

Solution (Python):
arr = [int(x) for x in input().split(' ')]
arr_sorted = sorted(arr)
str_sorted = ' '.join(str(x) for x in arr_sorted)
print(str_sorted)

Solution (Python):
in_str = input().split(" ")
in_int = sorted(list(map(int, in_str)))
in_sstr = list(map(str, in_int))
tes = " ".join(in_sstr)
print(tes)

Solution (Python):
import sys

list = map(int,sys.stdin.readline().split())
list.sort()
print(' '.join(map(str,list)))

Solution (Python):
import sys

line = sys.stdin.readline()
inp = []
for i in line.split(" "):
    inp.append(int(i))

inp.sort()

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

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

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

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

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

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

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

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

Solution (Python):
m = map(int,raw_input().split())
if m[0] < m[1] < m[2] or m[0] == m[1] == m[2] or m[0] < m[1] == m[2] or m[0] == m[1] < m[2]:
 print m[0],m[1],m[2]
elif m[2] < m[0] < m[1] or m[2] < m[0] == m[1] or m[2] == m[0] < m[1]: 
 print m[2],m[0],m[1]
elif m[1] < m[2] < m[0] or m[1] < m[2] == m[0] or m[1] == m[2] < m[0]: 
 print m[1],m[2],m[0]
elif m[0] < m[2] < m[1]:
 print m[0],m[2],m[1]
elif m[2] < m[1] < m[0]:
 print m[2],m[1],m[0]
elif m[1] < m[0] < m[2]:
 print m[1],m[0],m[2]

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

for i in range(len(a)):
	point = a[i:].index(min(a[i:])) + i
	temp = a[i];
	a[i] = a[point]
	a[point] = temp
print '%s %s %s' % (str(a[0]), str(a[1]), str(a[2]))

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

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

n.sort()
print(str(n[0]) + " " + str(n[1]) + " " + str(n[2]))

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

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

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

def change(a):
 for i in range(0,3):
  for j in range(0,3):
   if a[i] < a[j]:
    temp = a[i]
    a[i] = a[j]
    a[j] = temp
 print str(a[0])+" "+str(a[1])+" "+str(a[2])

change(a)

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

if l[0] > l[1]:
    s = l[0]
    l[0] = l[1]
    l[1] = s
if l[2] > l[0]:
    if l[2] < l[1]:
        s = l[1]
        l[1] = l[2]
        l[2] = s
else:
    s = l[2]
    l[2] = l[1]
    l[1] = l[0]
    l[0] = s
print l[0], l[1], l[2]

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

Solution (Python):

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

for i in range(2):
    for j in range(2-i):
        if nums[j] > nums[j+1]:
            temp      = nums[j]
            nums[j]   = nums[j+1]
            nums[j+1] = temp

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

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

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

Solution (Python):
N = map( int , raw_input().split() )
 
if N[0] < N[1] < N[2] or N[0] == N[1] == N[2] or N[0] < N[1] == N[2] or N[0] == N[1] < N[2]:
  print "%d %d %d" %(N[0],N[1],N[2])
elif N[0] < N[2] < N[1]:
  print "%d %d %d" %(N[0],N[1],N[2])
elif N[1] < N[0] < N[2]:
  print "%d %d %d" %(N[1],N[0],N[2])
elif N[1] < N[2] < N[0] or N[1] < N[2] == N[0] or N[1] == N[2] < N[0]: 
  print "%d %d %d" %(N[1],N[2],N[0])
elif N[2] < N[0] < N[1] or N[2] < N[0] == N[1] or N[2] == N[0] < N[1]:
  print "%d %d %d" %(N[2],N[0],N[1])
elif N[2] < N[1] < N[0]:
  print "%d %d %d" %(N[2],N[1],N[0])

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

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

Solution (Python):
a, b, c = map(int, raw_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):
n=map(int, raw_input().split())
max_min=sorted(n)
for i in range(len(max_min)):
    print max_min[i],

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

if (min(a)<a[0]<max(a)):
    print min(a),a[0],max(a)
elif (min(a)<a[1]<max(a)):
    print min(a),a[1],max(a) 
else:
    print min(a),a[2],max(a)

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

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

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

def ITP1(a, b, c):
    if (a <= b):
        if (b <= c):
            print a, b, c
            return
        if (c <= b):
            if (c <= a):
                print c, a, b
                return
            if (a <= c):
                print a, c, b
                return
    if (b <= a):
        if (a <= c):
            print b, a, c
            return
        if (c <= a):
            if (c <= b):
                print c, b, a
                return
            if (b <= c):
                print b, c, a
                return

ITP1(a, b, c)

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

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

Solution (Python):
a, b, c = map(int, raw_input().split())
if    a <= b <= c:
    print"%d %d %d" % (a, b, c)
elif b <= a <= c:
    print"%d %d %d" % (b, a, c)
elif a <= c <= b:
    print"%d %d %d" % (a, c, b)
elif c <= a <= b:
    print"%d %d %d" % (c, a, b)
elif b <= c <= a:
    print"%d %d %d" % (b, c, a)
elif c <= b <= a:
    print"%d %d %d" % (c, b, a)

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

Solution (Python):
a, b, c = map(int, raw_input().split())
temp = 0

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

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

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()
print "%d %d %d" %(l[0] ,l[1], l[2])

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

max = max(a,b)
min = min(a,b)
if max < c:
  middle = max
  max = c

elif min > c:
  middle = min
  min = c

else:
 middle = c

print "%d %d %d" %(min, middle, max)

Solution (Python):
num = map(int, raw_input().split())
for i in range(0,2):
 for j in range(0,2):
  if num[j] > num[j+1]:
   tmp_box = num[j]
   num[j] = num[j+1]
   num[j+1] = tmp_box
sort = map(str, num)
print sort[0] + " " + sort[1] + " " + sort[2]

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

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

Solution (Python):
a = raw_input().split(" ")
a.sort()
print "%s %s %s" % (a[0],a[1],a[2])

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

Solution (Python):
a = raw_input().strip().split(" ")
a.sort()
print " ".join(a)

Solution (Python):
import sys

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

num.sort()
print str(num[0])+ " " +str(num[1])+ " " +str(num[2])

Solution (Python):


l = raw_input().split()

l.sort()

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

print "%d %d %d" %(a, b, c)

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

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

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

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


l = map(int, raw_input(). split())
i = min(l)
l.remove(min(l))
n = min(l)
l.remove(min(l))
m = min(l)
print("{0} {1} {2}". format(i, n, m))

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

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

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

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

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

i = sorted(n)
o = ' '.join(map(str,i))

print o

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

Solution (Python):


list = map(int, raw_input().split())
list.sort()
print "%d %d %d" %(list[0], list[1], list[2])

Solution (Python):

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

Solution (Python):
s = raw_input()
nlist = map(int, s.split())
a, b, c= nlist

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

Solution (Python):
s = raw_input()
nlist = map(int, s.split())
a, b, c= nlist

ls = sorted(nlist)
print '%d %d %d' %(ls[0], ls[1], ls[2])

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

Solution (Python):
x = raw_input()
x_list = x.split(" ")

x_list = map(int, x_list)

max = min = mid = 0
for i in range(1,3):
    if x_list[max] < x_list[i]:
        mid = max
        max = i
    elif x_list[min] > x_list[i]:
        mid = min
        min = i
    else:
        mid = i

print("%d %d %d" %(x_list[min], x_list[mid], x_list[max]))

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):
class SortingThreeNumbers:
    def __init__(self, n):
        n.sort()
        print "%(a)d %(b)d %(c)d" % {'a':n[0],'b':n[1],'c':n[2]}
        return

if __name__ == "__main__":
    n = (map(int, raw_input().split()))
    SortingThreeNumbers(n)

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

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

Solution (Python):
x = map(int, raw_input().split())
x.sort()
print "%d %d %d" %(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):
num = list(map(int,input().split()))
num.sort()
print(num[0],num[1],num[2])

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

Solution (Python):
n=raw_input()
k=n.split()
k.sort()
print k[0],
print k[1],
print k[2]

Solution (Python):
i = raw_input().strip().split()

l = [int(i[0]),int(i[1]),int(i[2])]
tmp = 0

for j in range(3):
    for k in range(3):
        if l[k] > l[j]:
            tmp = l[j]
            l[j] = l[k]
            l[k] = tmp

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

Solution (Python):

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

Solution (Python):


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

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

Solution (Python):
a, b, c = [int(x) for x in raw_input().split(" ")]
list =[a,b,c]
list_2 = []

for x in range(len(list)):
    mini = min(list)
    list_2.append(mini)
    list.remove(mini)

for x in range(0, len(list_2)):
    a = list_2[x]

    if x == 0:
        req = str(a) + " "
    else:
        req += str(a) + " "

q = req.rstrip()
print(q)

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

Solution (Python):
import sys

arr = sorted(map(int, sys.stdin.readline().split()))
print(' '.join(map(str, arr)))

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