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

Submission status: Accepted

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

Submission status: Accepted

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

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
    
print(str(a)+" "+str(b)+" "+str(c))

Submission status: Accepted

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

Submission status: Accepted

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

a.sort()

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

Submission status: Accepted

Solution code:
import sys

x=sys.stdin.readline()

arr=x.split()

arrInt=list()
#print(arr, type(arr))
for i in arr:
   # print(i)
    arrInt.append(int(i))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = sorted(inpuｔ().split())
print(a[0], a[1], a[2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__=='__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
X = sorted(list(map(int, input().split())))
print(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:
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)

# sortを使って解く -> Presentation error となってしまう。。
"""
A = list(map(int, input().split()))
A.sort()
for a in A:
    print(a, end=' ')
"""

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin

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

arr.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ns = list(map(int, input().split()))
ns.sort()
print(ns[0], ns[1], ns[2])
# print(*ns) と書いてもよい

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

aizu003()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

n.sort()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Python 3+
import sys

#file = open("test.txt")
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)

Submission status: Accepted

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

data.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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, 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, 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, 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:
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 30 16:38:31 2015

@author: hirose
"""

#Branch on Condition - Sorting Three Numbers

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]

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
#1_2_C 2015.3.6
numbers = list(map(int,input().split()))
numbers.sort()
print("{} {} {}".format(numbers[0],numbers[1],numbers[2]))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:UTF-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

#input_line1 = raw_input()
#input_line2 = raw_input()
#input_line3 = raw_input()



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

#data[1] = sys.stdin.readline()
#data[2] = sys.stdin.readline()
data = data.split()

#data[0] = data[0].rstrip()
#data[1] = data[1].rstrip()
#data[2] = data[2].rstrip()


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

        #print(j)
        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])

    

#print(input_line1)
#print(input_line2)
#print(input_line3)

Submission status: Accepted

Solution code:
# coding=utf-8

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

Submission status: Accepted

Solution code:

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

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

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

Submission status: Accepted

Solution code:

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)

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