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:
# coding: utf-8
# Here your code !

def func():
    try:
        line=input().rstrip()
        numbers=line.split(" ")
        for i,item in enumerate(numbers):
            numbers[i]=int(item)
    except:
        print("input error")
        return -1
    
    numbers.sort()
    
    result=""
    for num in numbers:
        result+=str(num)+" "
    
    print(result.rstrip(" "))

func()

Submission status: Accepted

Solution code:
#coding:UTF-8
s = input().split()
a=int(s[0])
b=int(s[1])
c=int(s[2])
for i in range(2):
    if(a>b):
        temp=a
        a=b
        b=temp
    if(b>c):
        temp=b
        b=c
        c=temp
print (a,b,c)

Submission status: Accepted

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

while 1:
	if a > b:
		a,b = b,a
	elif a > c:
		a,c = c,a
	elif b > c:
		b,c = c,b
	else:
		break

print(a,b,c)

Submission status: Accepted

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

x = [a,b,c]
x.sort()
print(str(x[0]) + " " + str(x[1]) + " " + str(x[2]))

Submission status: Accepted

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

theArray = [a, b, c]
minimum = min(theArray)
maximum = max(theArray)

newArray = [str(minimum), str(a+b+c-minimum-maximum), str(maximum)]



print(' '.join(newArray))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = input().split(" ")
n = [int(i) for i in num]
n = sorted(n)
print(n[0], n[1], n[2],sep = " ")

Submission status: Accepted

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

Submission status: Accepted

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

a.sort()

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

Submission status: Accepted

Solution code:
def main(arg):
    arg = str(arg)
    numbers = [int(x)for x in arg.split(" ")]
    numbers = sorted(numbers)
    a,b,c = numbers[0],numbers[1],numbers[2]
    return "{} {} {}".format(a,b,c)


if __name__ == '__main__':
    print(main(input()))

Submission status: Accepted

Solution code:
def qsort(nums):
    if len(nums) <= 1:
        return nums

    n = nums[0]

    lowers = [x for x in nums if x < n]
    equals = [x for x in nums if x == n]
    uppers = [x for x in nums if x > n]

    return qsort(lowers) + equals + qsort(uppers)

nums = list(map(int, input().split(' ')))

print(' '.join([str(x) for x in qsort(nums)]))

Submission status: Accepted

Solution code:
#coding:utf-8

li =input().rstrip().split(" ")

lii =list(map(int,li))

lii.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

lst = sorted(map(int, sys.stdin.readline().rstrip().split(' ')))
print('{} {} {}'.format(*lst))

Submission status: Accepted

Solution code:
s = input().split(" ")
nums = list(map(int, s))
for i in range(2):
    for j in range(i+1, 3):
        if nums[i] > nums[j]:
            w = nums[i]
            nums[i] = nums[j]
            nums[j] = w
for i in range(3):
    if i == 2:
        print(nums[i])
    else:
        print(nums[i], end=" ")

Submission status: Accepted

Solution code:
# 3,2,1
a, b, c = map(int, input().split())
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:
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:
x = list(map(int, input().split()))
x.sort()
print("{0} {1} {2}".format(x[0],x[1],x[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inpts = [int(n) for n in input().split()]
for i in range(2):
    for j in range(2-i):
        if inpts[j] > inpts[j+1]:
            temp = inpts[j]
            inpts[j] = inpts[j+1]
            inpts[j+1] = temp
print(' '.join([str(n) for n in inpts]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8

import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
for i in range(len(a)):
    j = len(a) - 1
    while i < j:
        if a[j] < a[j-1]:
            t = a[j]
            a[j] = a[j-1]
            a[j-1] = t
        j -= 1

for i in range(len(a)):
    if i == len(a) - 1:
        print(a[i])
    else:
        print(a[i], end=" ")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
l = list(map(lambda x: int(x), input().strip().split()))
l.sort()
s = " ".join(map(lambda x: str(x),l))
print(s)

Submission status: Accepted

Solution code:
#!/bin/usr/python

a = sorted([int(i) for i in input().split()])

for i in range(len(a)):
  print(str(a[i]), end = ' ' if i != len(a)-1 else '\n')

Submission status: Accepted

Solution code:
i = j = k = 0
n = ''
m = ''
l = ''

line = input()

while line[i] != ' ':
    n = n + line[i]
    i += 1
    
i += 1
while line[i] != ' ':
    l = l + line[i]
    i += 1

while i < len(line):
    m = m + line[i]
    i += 1
    
n = int(n)
l = int(l)
m = int(m)

min = n
if min > l:
	min = l
if min > m:
	min = m

max = n
if max < l:
	max = l
if max < m:
	max = m

if min < n <max:
	cen = n
elif min < l < max:
	cen = l
else: 
	cen = m

print(min,end=' ')
print(cen,end=' ')
print(max)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
nums = [int(i) for i in input().split()]
sort_nums = sorted(nums)
nums_str = map(str,sort_nums)
print(' '.join(nums_str))

Submission status: Accepted

Solution code:
input_data = [int(i) for i in input().split()]
input_data.sort()
print(input_data[0],input_data[1],input_data[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:
x=input().split()
y=list(map(int,x))
a=y[0]
b=y[1]
c=y[2]
d=sorted([a,b,c])
print("{0} {1} {2}".format(d[0],d[1],d[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c= map(int, input().split())
i=0
while i<3:
 if a>b:
     x=a
     a=b
     b=x
 elif b>c:
     x=b
     b=c
     c=x
 i=i+1

print (a,b,c)

Submission status: Accepted

Solution code:
res = list(map(int, input().split()))
res.sort(reverse=False)
print('{0[0]} {0[1]} {0[2]}'.format(res))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
d=[a,b,c]
d.sort()
print("{0} {1} {2}".format(d[0],d[1],d[2]))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
d=sorted([a,b,c])
print("{0} {1} {2}".format(d[0],d[1],d[2]))

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
d=sorted([a,b,c])
print ("{0} {1} {2}".format(d[0],d[1],d[2]))

Submission status: Accepted

Solution code:
x=input().split()
y=list(map(int,x))
z=sorted(y)
print("{0} {1} {2}".format(z[0],z[1],z[2]))

Submission status: Accepted

Solution code:
nums = [int(i) for i in input().split()]
nums_sort = sorted(nums)
nums_str = map(str, nums_sort)
print (' '.join(nums_str))

Submission status: Accepted

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

min = min(a,b,c)
max = max(a,b,c)
nokori = (a+b+c) - min - max

print(min,nokori,max)

Submission status: Accepted

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

Submission status: Accepted

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

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:
arr = [int(i) for i in input().split()]
print(*sorted(arr))

Submission status: Accepted

Solution code:
print(*sorted([int(i) for i in input().split()]))

Submission status: Accepted

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

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

if c<a:
	a,c=c,a

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

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

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
ans = []

for i in range(10001):
    for x in l: 
        if i == x:
            ans.append(i)

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

Submission status: Accepted

Solution code:
#! python3

a = [int(x) for x in input().strip().split(' ')]
a.sort()
print(' '.join([str(x) for x in a]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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())
[x, y, z] = sorted([a, b, c])
print(x, y, z)

Submission status: Accepted

Solution code:
import re

given = input("")

result = re.search(r"([0-9]+)\s([0-9]+)\s([0-9]+)", given)

a = int(result.group(1))
b = int(result.group(2))
c = int(result.group(3))

numlist= [a,b,c]
numlist.sort()

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

Submission status: Accepted

Solution code:
data = [int(s) for s in input().split(' ')]

data.sort()
data = [str(i) for i in data]
print(' '.join(data))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Arr = []
Arr = input().split()
for i in range(3):
    Arr[i] = int(Arr[i])
for j in range(0, 2, 1):
    for i in range(0 , 2-j , 1):
        if(Arr[i] > Arr[i+1]):
            buf = Arr[i]
            Arr[i] = Arr[i+1]
            Arr[i+1]=buf
print("{} {} {}".format(Arr[0],Arr[1],Arr[2]))

Submission status: Accepted

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

while(b < a or c < a or c < b):
	if(a > b):
		tmp = a
		a = b
		b = tmp
	if(b > c):
		tmp = b
		b = c
		c = tmp

print(a, b, c)

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

Submission status: Accepted

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

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

print (a,b,c)

Submission status: Accepted

Solution code:
input_line = map(int, raw_input().split() )
"""
a = int(input_line[0])
b = int(input_line[1])
c = int(input_line[2])
"""
sorted_line = sorted(input_line)

print sorted_line[0], sorted_line[1], sorted_line[2]

Submission status: Accepted

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

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:
z =[int(i) for i in input().split()]
  
z.sort()
print("{0} {1} {2}".format(z[0],z[1],z[2]))

Submission status: Accepted

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

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

if a[0] > a[1]:
	tmp=a[0]
	a[0]=a[1]
	a[1]=tmp
	
print a[0],a[1],a[2]

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:
a = sorted(map(int, input().split()))
print(a[0], a[1], a[2])

Submission status: Accepted

Solution code:
a = list(i for i in input().split()) 
a.sort()
b = " ".join(a)
print(b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def sortBy(a, b, c):
	line = []
	taples = (a, b, c)
	line = list(taples)
	line.sort()
	return '{} {} {}'.format(line[0], line[1], line[2])

print(sortBy(a, b, c))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = [int(i) for i in input().split()]
n = sorted(n)
for i in range(3):
    if i == 2:
        print(n[i])
    else:
        print(n[i], end = " ")

Submission status: Accepted

Solution code:
abc = input().split()
abc.sort()
print(abc[0]+' '+abc[1]+' '+abc[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:
# Aizu Problem ITP_1_2_C: Sorting Three Numbers
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")

a, b, c = sorted([int(_) for _ in input().split()])
print(a, b, c)

Submission status: Accepted

Solution code:
a = [int(number) for number in input().split()];
a.sort();
print(str(a[0]) + ' ' + str(a[1]) + ' ' + str(a[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(input().split(" ")))

Submission status: Accepted

Solution code:
i_list = input().split()
i_list.sort(key=int)
print(int(i_list[0]),end='')
print('',int(i_list[1]),end='')
print('',int(i_list[2]))

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
num_list=input().split()
num_list[0]=int(num_list[0])
num_list[1]=int(num_list[1])
num_list[2]=int(num_list[2])

def sort(num_list):
    for i in range(0,len(num_list)-1):
        for j in range(0,len(num_list)-1):
            if num_list[j]>num_list[j+1]:
                num=num_list[j]
                num_list[j]=num_list[j+1]
                num_list[j+1]=num

sort(num_list)
print(num_list[0],num_list[1],num_list[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())

if a < b:
    mid = b
    mini = a
    if mid < c:
        maxi = c
    else:
        if mini < c:
            maxi = mid
            mid = c
        else:
            maxi = mid
            mid = mini
            mini = c

else:
    mid = a
    mini = b
    if mid < c:
        maxi = c
    else:
        if mini < c:
            maxi = mid
            mid = c
        else:
            maxi = mid
            mid = mini
            mini = c


print('{} {} {}'.format(mini, mid, maxi))

Submission status: Accepted

Solution code:
x =[int(i) for i in input().split()]

x.sort()

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

Submission status: Accepted

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

if a < b:
    if a < c:
        one = a
        if b < c:
            two = b
            three = c
        else:
            two = c
            three = b
    else:
        one = c
        two = a
        three = b
else:
    if b < c:
        one = b
        if a < c:
            two = a
            three = c
        else:
            two = c
            three = a
    else:
        one = c
        two = b
        three = a

print("{0} {1} {2}".format(one,two,three))

Submission status: Accepted

Solution code:
i = input().split()

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

values = [a, b, c]
values.sort()

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

Submission status: Accepted

Solution code:
def split(a, b):
	temp = a
	a = b
	b = temp
	return a, b

a, b, c = map(int, input().split())
temp = 0

if a > b:
	a, b = split(a, b)
if a > c:
	a, c = split(a, c)
if b > c:
	b, c = split(b, c)

print(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:
print(*sorted(eval(input().replace(' ', ','))), sep=' ')

Submission status: Accepted

Solution code:
I = input().split()
for i in[0, 1, 2]:
    I[i] = int(I[i])
for i in[0, 1, 2]:
    j = i + 1
    while j <= 2:
        if I[i] > I[j]:
            w = I[i]
            I[i] = I[j]
            I[j] = w
        j += 1
print(str(I[0]) + ' ' + str(I[1]) + ' ' + str(I[2]))

Submission status: Accepted

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

if a>b>c:
  print(c,b,a)

elif a>c>b:
  print(b,c,a)

elif b>a>c:
  print(c,a,b)

elif b>c>a:
  print(a,c,b)

elif c>a>b:
  print(b,a,c)

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

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

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

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

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

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

else:
  print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

print(*data)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
user1,user2,user3=map(int,input().split())

if user3<user2:
    user3,user2=user2,user3

if user2<user1:
    user2,user1=user1,user2

if user3<user2:
    user2,user3=user3,user2

print(user1,user2,user3)

Submission status: Accepted

Solution code:
a,b,c=input().split()
a=int(a);b=int(b);c=int(c)

if a>c:
    d=a;a=c;c=d

if b>c:
    d=b;b=c;c=d

if a>b:
    d=a;a=b;b=d

print(a,b,c)

Submission status: Accepted

Solution code:
lin = input()
l = lin.split(" ")
a = int(l[0])
b = int(l[1])
c = int(l[2])

l = [a,b,c]
l.sort()

print(str(l[0])+" "+str(l[1])+" "+str(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(" ".join(map(str, sorted(map(int, input().split())))))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l1 = list(input().split(" "))
idx = 0
for i in l1:
    l1[idx] = int(i)
    idx += 1
l1.sort()
print(l1[0], l1[1], l1[2])

Submission status: Accepted

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


def main():
    print(*sorted(list(map(int, input().split()))))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
integer = [int(n) for n in input().split()]
sort = sorted(integer)
for i in range(3):
    if i == 3 - 1:
        print(sort[i])
    else:
        print(sort[i], end=' ')

Submission status: Accepted

Solution code:
numbers = input().split()

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

Submission status: Accepted

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

str="{d} {e} {f}"
print(str.format(d=a, e=b, f=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:
a, b, c = (int(i) for i in ((input()).split()))
if a > b:
    a, b = b, a
if c <= a:
    a, b, c = c, a, b
elif a <= c <= b:
    b, c = c, b
print(a, b, c)

Submission status: Accepted

Solution code:
# (c) midandfeed
q = [int(x) for x in input().split()]
q = sorted(q)
for i in range(len(q)):
	print(q[i], end='')
	if (i != (len(q))-1):
		print('', end=' ')
	else:
		print()

Submission status: Accepted

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

m1 = min(a,b,c)
m3 = max(a,b,c)

if a == m1:
    m2 = min(b,c)
elif b == m1:
    m2 = min(a,c)
else:
    m2 = min(a,b)

print(m1,m2,m3)

Submission status: Accepted

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

Submission status: Accepted

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

if a < b:
	if a < c:
		x = a
		if b < c:
			y = b
			z = c
		else:
			y = c
			z = b
	else:
		x = c
		y = a
		z = b
elif a < c:
	 	x = b
	 	y = a
	 	z = c
elif b < c:
	x = b
	y = c
	z = a
else:
	x = c
	y = b
	z = a
	
print(x, y, z)

Submission status: Accepted

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

for i in range(len(a)):
    if i == len(a)-1:
        print(a[i])
    else:
        print(a[i], end=" ")

Submission status: Accepted

Solution code:
z = map(int, input().split())
a = sorted(z)
print("{} {} {}".format(a[0], a[1], a[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
numbers = list(map(int, input().split()))
numbers.sort()
print('%d %d %d' % tuple(numbers))

Submission status: Accepted

Solution code:
def main():
    x = input()
    x1, x2, x3 = x.split(' ') 
    a = int(x1)
    b = int(x2)
    c = int(x3)
    z = [a, b, c]
    z.sort()
    print(z[0],z[1],z[2])

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = [int(i) for i in raw_input().split()]
num = [str(i) for i in sorted(num)]
print " ".join(num)

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

nums.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_str = input().split(' ')
input_int = []

for value in input_str:
	input_int.append(int(value))

input_int.sort();
	
print('%d %d %d'%(input_int[0],input_int[1],input_int[2]));

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num=[int(i) for i in input().split()]
for i in range(len(num)):
    for j in range(i+1,len(num)):
        if num[i]>num[j]:
            bigger = num[i]
            num[i]=num[j]
            num[j]=bigger
for i in range(len(num)-1):
    print(num[i],end=" ")
print(num[len(num)-1])

Submission status: Accepted

Solution code:
deglist = raw_input().split(" ")
deglist.sort()
a = int(deglist[0])
b = int(deglist[1])
c = int(deglist[2])
print("{0} {1} {2}".format(a,b,c))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    a = list(map(int, input().split()))
    a.sort()
    for x in range(3):
        if x != 2:
            print(a[x], end = " ")
        else:
            print(a[x])


if __name__ == "__main__":
    main()

Submission status: Accepted

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

def comp(a,b,c):
	if a<b and b>=c:
		temp=c
		c=b
		b=temp
	if a>b and b<c:
		temp1=a
		temp2=b
		b=c
		a=temp2
		c=temp1
	if a>=b and b>=c:
		temp=c
		c=a
		a=temp

	print(a,b,c)

comp(a,b,c)

Submission status: Accepted

Solution code:
S = raw_input().split(' ')
for i in range(0,len(S)):
  S[i] = int(S[i])

if S[0] < S[1]:
  if S[0] < S[2]:
    a = S[0]
    if S[1] < S[2]:
      b = S[1]
      c = S[2]
    else:
      b = S[2]
      c = S[1]
  else:
    a = S[2]
    b = S[0]
    c = S[1]
else:
  if S[0] < S[2]:
    b = S[0]
    if S[1] < S[2]:
      a = S[1]
      c = S[2]
    else:
      a = S[2]
      c = S[1]
  else:
    c = S[0]
    if(S[1] < S[2]):
      a = S[1]
      b = S[2]
    else:
      a = S[2]
      b = S[1]

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

Submission status: Accepted

Solution code:
def main():

    num_list = sorted(list(map(int, input().split())))
    print(' '.join(map(str, num_list)))


main()

Submission status: Accepted

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

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

nums.sort()

print(' '.join(list(map(str,nums))))

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:
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_2_C&lang=jp

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    numbers = [int(x) for x in input().split()]
    numbers.sort()
    print(*numbers)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

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

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:
l = input()
data = l.split()
data.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

if x[0] > x[1]:
  x[0],x[1] = x[1],x[0]
if x[1] > x[2]:
  x[1],x[2] = x[2],x[1]
if x[0] > x[1]:
  x[0],x[1] = x[1],x[0]
print "%d %d %d" %(x[0],x[1],x[2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main() :
    a, b, c = [int(i) for i in input().split()]

    if a > b :
        a, b = b, a
    if b > c :
        b, c = c, b
    if a > b :
        a, b = b, a

    print(a, b, c)



if __name__ == '__main__' :
    main()