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

Submission status: Accepted

Solution code:
a = input()
b = list(map(int, a.split()))
b.sort()
print(str(b[0])+" " + str(b[1])+ " " +str(b[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:
def qsort(lst):
    if len(lst) == 0:
        return lst

    n = lst[0]

    l = []
    r = []

    for x in lst[1:]:
        if x < n:
            l.append(x)
        else:
            r.append(x)

    return qsort(l) + [n] + qsort(r)

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

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

Submission status: Accepted

Solution code:
a, b, c = sorted(int(w) for w in input().split())
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:
abc_s = input()
abc_a = abc_s.split(" ")
abc = [int(x) for x in abc_a]
 
sorted = False
 
while sorted == False:
  sorted = True
  if abc[0] > abc[1]:
    sorted = False
    tmp = abc[0]
    abc[0] = abc[1]
    abc[1] = tmp
  if abc[1] > abc[2]:
    sorted = False
    tmp = abc[1]
    abc[1] = abc[2]
    abc[2] = tmp
 
print("{0[0]} {0[1]} {0[2]}".format(abc))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():
	values = [int(x) for x in raw_input().split(" ")]
	if values[0] > values[1]:
		values[0], values[1] = values[1], values[0]
	if values[1] > values[2]:
		values[1], values[2] = values[2], values[1]
	if values[0] > values[1]:
		values[0], values[1] = values[1], values[0]
	print "%s %s %s" % tuple(values)

if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
import sys
for x in sys.stdin:
    a,b,c = sorted([int(i) for i in x.split(' ')])
    print '%d %d %d' %(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = map(int,raw_input().split())
if i[0] < i[1]:
        if i[2] < i[0]:
                print i[2],
                print i[0],
                print i[1]
        elif i[1] < i[2]:
                print i[0],
                print i[1],
                print i[2]
        else:
                print i[0],
                print i[2],
                print i[1]
else:
        if i[2] < i[1]:
                print i[2],
                print i[1],
                print i[0]
        elif i[0] < i[2]:
                print i[1],
                print i[0],
                print i[2]
        else:
                print i[1],
                print i[2],
                print i[0]

Submission status: Accepted

Solution code:
for d in sorted(map(int, raw_input().split())):
	print d,

Submission status: Accepted

Solution code:
from __future__ import division, print_function
from sys import stdin
print(*sorted(int(s) for s in stdin.readline().split()))

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
    cols = map(int, line.rstrip('\n').split(' '))
    print ' '.join(map(str, sorted(cols)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    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=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 str(a)+" "+str(b)+" "+str(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 = map(int,raw_input().split())
b,c,d = sorted(a)
print b,c,d

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()
for i in l:
  print i,

Submission status: Accepted

Solution code:
sids = input()
side_list = []

side_list = [int(s) for s in sorted(sids.split(' ', ), key=lambda s: int(s), reverse=False)]

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

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

Submission status: Accepted

Solution code:
import sys

a = [int(i) for i in sys.stdin.readline().split(' ')]

for i in range(0, len(a)):
    for j in range(i+1, len(a)):
        if a[i] > a[j]:
            t = a[i]
            a[i] = a[j]
            a[j] = t

print(' '.join([str(i) for i in a]))

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 = 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:
three_numbures=list(map(int,input().split()))
three_numbures.sort()
print(*three_numbures)

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

Submission status: Accepted

Solution code:
# Your code here!
a,b,c=(int(x) for x 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(f'{a} {b} {c}')

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
#a, b, c = map(int, input().split())
a = input().split()
a_int = [int(s) for s in a]

a_sorted = sorted(a_int)
print(' '.join(map(str, a_sorted)))

Submission status: Accepted

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

if a <= b:
    if b <= c:
        print(f"{a} {b} {c}")
    else:
        if a <= c:
            print(f"{a} {c} {b}")
        else:
            print(f"{c} {a} {b}")
else:
    if b <= c:
        if a <= c:
            print(f"{b} {a} {c}")
        else:
            print(f"{b} {c} {a}")
    else:
        print(f"{c} {b} {a}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ary = list(map(int,input().split()))
a,b,c = sorted(ary)
print('{} {} {}'.format(a,b,c))

Submission status: Accepted

Solution code:
a = [int(i) for i in input().split()]
a.sort()
print(*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:
a, b, c = sorted(list(map(int, input().split())))
print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

a,b,c = map(int,input().split())
x = [a,b,c]

x.sort()

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

Submission status: Accepted

Solution code:
l = input()
a,b,c = list(map(int, l.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:
X = list(map(int, input().split()))
X.sort()
print(str(X[0])+" "+str(X[1])+" "+str(X[2]))

Submission status: Accepted

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

print(f"{l[0]} {l[1]} {l[2]}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
number1,number2,number3=(int(x) for x in input().split())
lst=[number1,number2,number3]
answer_lst=sorted(lst)
min,med,max=(int(i) for i in answer_lst)
print(min,med,max)

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

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if 1<=a<=10000 and 1<=b<=10000 and 1<=c<=10000:
    if a >= b:
        if b>=c:
            print(c,b,a)
        elif a >=c and b<=c:
            print(b,c,a)
        else:
            print(b,a,c)
    else:
        if b <= c:
            print(a,b,c)
        elif a<=c and b>=c:
            print(a,c,b)
        else:
            print(c,a,b)

Submission status: Accepted

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

A=min(a,b,c)
B=max(a,b,c)
C=a+b+c-A-B

print(A,C,B)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c=map(int, input().split())
x=max(a,b,c)
y=min(a,b,c)
z=(a+b+c-x-y)
print(y,z,x)

Submission status: Accepted

Solution code:
x,y,z=map(int,input().split())
if x<=y<=z:print(x,y,z)
elif y<=x<=z:print(y,x,z)
elif x<=z<=y:print(x,z,y)
elif z<=y<=x:print(z,y,x)
elif y<=z<=x:print(y,z,x)
elif z<=x<=y:print(z,x,y)

Submission status: Accepted

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

Submission status: Accepted

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

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:
n = input().split()
n = list(map(int, n))
n.sort()
print(*n, sep = ' ')

Submission status: Accepted

Solution code:
a,b,c=map(int,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:
S = input()
s = S.split()


a = list(map(int,s))
b = sorted(a)
c = list(map(str,b))

print(" ".join(c))

Submission status: Accepted

Solution code:
b = input().split()
s = [int(n) for n in b]
s.sort()
print("{0} {1} {2}".format(s[0], s[1], s[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:
line=list(map(int, input(). split()))
line.sort()
print(line[0],line[1],line[2])

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

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=(int(x) for x 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(f'{a} {b} {c}')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def mapt(fn, *args):
    return tuple(map(fn, *args))


def aa(n):
    a, b, c = (sorted(n))
    print(a, b, c)


n = mapt(int, input().split(" "))
aa(n)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if(a>b):
    n=b
    #print(str(a)+" "+str(b)+" "+str(c))
    b=a
    #print(str(a)+" "+str(b)+" "+str(c))
    a=n
    #print(str(a)+" "+str(b)+" "+str(c))
if(b>c):
    n=b
    b=c
    c=n
    #print(str(a)+" "+str(b)+" "+str(c))
    #print(str(a)+" "+str(b)+" "+str(c))
if(a>b):
    n=a
    a=b
    b=n
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
if (b>c):
    n=b
    b=c
    c=n
if (a>b):
    n=a
    a=b
    b=n
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
if (b>c):
    n=b
    b=c
    c=n
if (a>b):
    n=a
    a=b
    b=n
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
if (b>c):
    n=b
    b=c
    c=n
if (a>b):
    n=a
    a=b
    b=n
print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(len(L)):
    for j in range(len(L)-1):
        if L[j] > L[j+1]:
            L[j], L[j+1] = L[j+1], L[j]

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

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()) 
tmp = 0

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

list = [a,b,c]
list.sort()
print(list[0],list[1],list[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
var=input()
var=var.split()
a=int(var[0])
b=int(var[1])
c=int(var[2])
if(1<=a<=10000 and 1<=b<=10000 and 1<=c<=10000):
    if(a<b<c):
        print(str(a)+" "+str(b)+" "+str(c))
    elif(c<a<b):
        print(str(c)+" "+str(a)+" "+str(b))
    elif(b<c<a):
        print(str(b)+" "+str(c)+" "+str(a))
    elif(a<c<b):
        print(str(a)+" "+str(c)+" "+str(b))
    elif(c<b<a):
        print(str(c)+" "+str(b)+" "+str(a))
    elif(b<a<c):
        print(str(b)+" "+str(a)+" "+str(c))
    elif(a==b and a>c):
        print(str(c)+" "+str(a)+" "+str(b))
    elif(a==b and a<c):
        print(str(a)+" "+str(b)+" "+str(c))
    elif(a==c and a>b):
        print(str(b)+" "+str(a)+" "+str(c))
    elif(a==c and a<b):
        print(str(a)+" "+str(c)+" "+str(b))
    elif(c==b and c>a):
        print(str(a)+" "+str(b)+" "+str(c))
    elif(c==b and c<a):
        print(str(b)+" "+str(c)+" "+str(a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if (a > b):
  a, b = b, a
  if (b > c):
    b, c = c, b
    if (a > b):
      a, b = b, a
else:
  if (b > c):
    b, c = c, b
  else:
    if (a > c):
      a, c = c, a
print("{} {} {}".format(a, b, c))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#
# 2c
#

def main():
    l = list(map(int, input().split()))
    l.sort()
    print(*l)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y,z = map(int, input().split())
if x>y:
    (x,y)=(y,x)
if y>z:
    (y,z)=(z,y)
if x>y:
    (x,y)=(y,x)
print(x,y,z)

Submission status: Accepted

Solution code:
lst = list(map(int,input().split()))
if lst[0]>lst[1]:
  lst[0],lst[1] = lst[1],lst[0]
if lst[1]>lst[2]:
  lst[1],lst[2] = lst[2],lst[1]
if lst[0]>lst[1]:
  lst[0],lst[1] = lst[1],lst[0]
lst = [str(i) for i in lst]
print(" ".join(lst))

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(x) for x in input().split())

if a>b :
    s1 = b
    s2 = a
else:
    s1 = a
    s2 = b

if s2 > c :
    s3 = s2
    s2 = c
    
    if s1 >s2:
        s2 = s1
        s1= c
else:
    s3 = c

print(s1,s2,s3)

Submission status: Accepted

Solution code:
c, d, e = map(int, input().split())
if c>d :
  temp = c
  c = d
  d = temp
if d>e :
  temp = d
  d = e
  e = temp
if c>d :
  temp = c
  c = d
  d = temp
print(c, d, e)

Submission status: Accepted

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

value.sort()
strval=(str(a) for a in value)
strval=" ".join(strval)
print(strval)

Submission status: Accepted

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

nums.sort()

nums = [str(x) for x in nums]

first_num = nums[0]
second_num = nums[1]
third_num = nums[2]

print(first_num + " " + second_num + " " + third_num)

Submission status: Accepted

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

x = min(a,b,c)
z = max(a,b,c)
y = a+b+c-x-z

print(f"{x} {y} {z}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

n.sort()

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

ls.sort()


print(*ls)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
XS = map(int, open(0).read().split())
print(" ".join(map(str, sorted(XS))))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
# 1. ソート対象の配列をピポット(=分割の基準)を基準に2つの部分配列に分割(divide)
# 2. 前方の部分配列に対してquick_sortを行う(solve)
# 3. 後方の部分配列に対してquick_sortを行う(solve)
# 4. 整列済み部分配列とピボットを連結して返す(Conquer)
def quick_sort(arr):
    if len(arr) < 2:
        return arr
    p = arr[0]
    left, right = divide(p, arr[1:])
    return quick_sort(left) + [p] + quick_sort(right)
    
def divide(p, arr):
    left, right = [], []
    for i in arr:
        if p > i:
            left.append(i)
        else:
            right.append(i)
    return left, right

arr = quick_sort(list(map(int, input().split())))
print(f'{arr[0]} {arr[1]} {arr[2]}')

Submission status: Accepted

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

Submission status: Accepted

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


a = sorted(a)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=input().split()
a=int(l[0])
b=int(l[1])
c=int(l[2])
if a>c:
    temp=a;a=c;c=temp
    if b<a:
         temp=a;a=b;b=temp
    elif b>c:
         temp=b;b=c;c=temp
elif b<a:
    temp=a;a=b;b=temp
elif b>c:
    temp=b;b=c;c=temp
        
print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
li = [x for x in list(input().split())]
li.sort()
print(" ".join(li))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
l.sort()
l = [str(c) for c in l]
print(' '.join(l))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = (int(x) for x 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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = input().split(" ")

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

num.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ii[0], ii[1], ii[2], sep=' ')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input().split()
print(" ".join(sorted(n)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input().split()
l2 = []
for j in l:
    l2.append(int(j))
l2.sort()
for i in l2:
    if l2[-1] == i:
        print(i)
    else:
        print(i,end=' ')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, y, z = input().split()
x = int(x)
y = int(y)
z = int(z)

tmp = None


if x > z:
    tmp = x
    x = z
    z = tmp
if x > y:
    tmp = x
    x = y
    y = tmp
if y > z:
    tmp = y
    y = z
    z = tmp

print(str(x) +' ' + str(y) + ' ' + str(z))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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