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



Sample input:
3 8 1


Sample output:
1 3 8

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
arr = map(int, raw_input().split())
arr.sort()
str_arr = map(str,arr)
print(" ".join(str_arr))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# coding: utf-8

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list = []

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

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input().split()
print(' '.join(sorted(a)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)
# print l.remove(min_1)
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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]

Submission status: Accepted

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

Submission status: Accepted

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

l.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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]

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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]

Submission status: Accepted

Solution code:
# encoding:utf-8

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

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

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
a=map(int,raw_input().split(" "))
#a = sorted(a)
#print a[0],a[1],a[2]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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]

Submission status: Accepted

Solution code:
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]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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]

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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]

Submission status: Accepted

Solution code:
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],

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

Solution code:
#coding: UTF-8

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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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:#b
	if a<=c:
		print(b,a,c,sep=" ")
	else:
		if b<=c:
			print(b,c,a,sep=" ")
		else:
			print(c,b,a,sep=" ")

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
#coding:utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print o

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
# encoding:utf-8
input = list(map(int, input().split(" ")))
input.sort()
print (str(input[0]) + " " + str(input[1]) + " " + str(input[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = raw_input()
nlist = map(int, s.split())
a, b, c= nlist
#print nlist.sort() 
ls = sorted(nlist)
print '%d %d %d' %(ls[0], ls[1], ls[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
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)

Submission status: Accepted

Solution code:
# coding: utf-8

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
d = [int(x) for x in input().split()]
d.sort()
print('{0} {1} {2}'.format(d[0], d[1], d[2]))

Submission status: Accepted

Solution code:
# coding:utf-8
# abc?????????????????????

abc = raw_input().split()

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

if b < a:
    a,b = b,a

if c < b:
    c,b = b,c

if b < a:
    a,b = b,a

print a,b,c

Submission status: Accepted

Solution code:
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 "%d %d %d" %(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
numlist = [a, b, c]
numlist.sort()
print(" ".join(map(str, numlist)))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
	nums = input().split(" ") 
	nums.sort()
	return " ".join(nums)
	
if __name__ == '__main__':
  print(main())

Submission status: Accepted

Solution code:
A = input().split()
B = sorted(A)
C = map(str, B)
print(' '.join(C))

Submission status: Accepted

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

Submission status: Accepted

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

a.sort()
a = map(str, a)

print a[0] + ' ' + a[1] + ' ' + a[2]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input().split()
a = []
for i in range(len(n)):
  a.append(int(n[i]))
a = sorted(a)
print('{0} {1} {2}'.format(a[0],a[1],a[2]))

Submission status: Accepted

Solution code:
num = list(map(int,input().split()))
count = 0
while count < 2:
        for i in range(2):
                j = 0
                if num[i] > num[i+1]:
                        j = num[i]
                        num[i] = num[i+1]
                        num[i+1] = j
                else:
                        continue
        count += 1
out = ''
for i in num:
        out += str(i) + ' '
print(out[:-1])

Submission status: Accepted

Solution code:
x = map(int, raw_input().split())

x.sort()

print '{0} {1} {2}'.format(x[0], x[1], x[2])

Submission status: Accepted

Solution code:
arr = input().split()
arr.sort()
for i in range(len(arr)):
    if i == len(arr) - 1:
        print(arr[i])
    else:
        print(arr[i], end = " ")

Submission status: Accepted

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

print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=input()
y=x.split(" ")
z=list(map(int,y))
z.sort()
str=str(z[0])+" "+str(z[1])+" "+str(z[2])
print(str)

Submission status: Accepted

Solution code:
# coding: utf-8
x = list(map(int, input().split(' ')))

x.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = map(int, raw_input().split())
for i in range(len(x)-1):
    for j in range(len(x)-i-1):
        if x[j] > x[j+1]:
            tmp = x[j+1]
            x[j+1] = x[j]
            x[j] = tmp
print x[0], x[1], x[2]