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

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

Submission status: Accepted

Solution code:
in_data=input()

in_list=[]

in_list=in_data.split(" ")

in_list[0]=int(in_list[0])
in_list[1]=int(in_list[1])
in_list[2]=int(in_list[2])


if in_list[0]<=in_list[1] and in_list[1]<=in_list[2] :

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

elif in_list[0]<=in_list[1] and in_list[2]<=in_list[1]:
    
    print(str(in_list[0])+" "+str(in_list[2])+" "+str(in_list[1]))
    
elif in_list[1]<=in_list[0] and in_list[0]<=in_list[2]:
    print(str(in_list[1])+" "+str(in_list[0])+" "+str(in_list[2]))

elif in_list[1]<=in_list[2] and in_list[2]<=in_list[0]:
    print(str(in_list[1])+" "+str(in_list[2])+" "+str(in_list[0]))

elif in_list[2]<=in_list[0] and in_list[0]<=in_list[1]:
    
    print(str(in_list[2])+" "+str(in_list[0])+" "+str(in_list[1]))

elif in_list[2]<=in_list[1] and in_list[1]<=in_list[0]:
    
    print(str(in_list[2])+" "+str(in_list[1])+" "+str(in_list[0]))

Submission status: Accepted

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

lst.append(a)
lst.append(b)
lst.append(c)

lst.sort()

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    nums = input().split()
    print(" ".join(sorted(nums)))

Submission status: Accepted

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

Submission status: Accepted

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

if b > c:
  x=b
  b=c
  c=x

if a > b:
  x=b
  b=a
  a=x

if b > c:
  x=b
  b=c
  c=x

print(f"{a} {b} {c}")

Submission status: Accepted

Solution code:
n = [int(s) for s in input().split()]
n = sorted(n)
print(str(n[0]) + " " + str(n[1]) + " " + str(n[2]))

Submission status: Accepted

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

n = sorted(n)

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

print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

print(f'{li[0]} {li[1]} {li[2]}')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
i=input()
a,b,c=map(int,i.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:
# coding: utf-8
# Your code here!
a, b, c = map(int, input().split())

max_value = a
min_value = b

if a < b:
    max_value = b
    min_value = a
if c > max_value:
    middle_value = max_value
    max_value = c

elif c < min_value:
    middle_value = min_value
    min_value = c
else:
    middle_value = c
    
print(min_value, middle_value, max_value)

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
#　なぜもう一度　a>bなのかは
#　紙とペンで考えてみて
if a > b:
    a, b = b, a
print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
v = list(map(int, input().split()))
if v[0]>v[1]:
    v[0], v[1] = v[1], v[0]
if v[1]>v[2]:
    v[1], v[2] = v[2], v[1]
if v[0]>v[1]:
    v[0], v[1] = v[1], v[0]
print(v[0],v[1],v[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('%s %s %s' % (a,b,c))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

li.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=input().split()
l_n_int = [int(n) for n in A]

l_n_int.sort()

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

Submission status: Accepted

Solution code:
l = sorted(list(map(int, input().split())))
for i in range(len(l) - 1): print(l[i], end = " ")
print(l[-1])

Submission status: Accepted

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

for i in range(len(data)-1):
    for j in range(len(data)-1,i,-1):
        if data[j]<data[j-1]:
            data[i],data[j]=data[j],data[i]

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

Submission status: Accepted

Solution code:
li = list(map(int,input().split()))
d = max(li)
e = min(li)
li.remove(d)
li.remove(e)
f = li[0]
print(e,f,d)

Submission status: Accepted

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

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:
    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 = input().split()
org_list = [a, b, c]
org_list.sort()
s =' '.join(org_list)
print(s)

Submission status: Accepted

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

Submission status: Accepted

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

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:
l = input().split()
l[0] = int(l[0])
l[1] = int(l[1])
l[2] = int(l[2])
l.sort()
print(f"{l[0]} {l[1]} {l[2]}")

Submission status: Accepted

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

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

if a > b:
	d=a
	a=b
	b=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:
a, b, c = input().split()
# a = int(num[0])
# b = int(num[1])
# c = int(num[2])

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

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

Submission status: Accepted

Solution code:
L= input().split( )
a=int(L[0])
b=int(L[1])
c=int(L[2])
if a>b:
    a,b=b,a
if a>c:
    a,b,c=c,a,b
if b>c:
    b,c=c,b
print(f"{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(f"{a} {b} {c}")
        elif a < b or a ==b:
            print(f"{a} {b} {c}")
    elif b < c or b == c:
            print(f"{a} {b} {c}")
elif a < b :
    if b > c:
        b, c = c, b
        if a > b :
            a, b = b, a
            print(f"{a} {b} {c}")
        elif a < b or a == b:
            print(f"{a} {b} {c}")
    elif b < c or b == c:
        print(f"{a} {b} {c}")

Submission status: Accepted

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

Submission status: Accepted

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

list_num.sort()

print(f"{list_num[0]} {list_num[1]} {list_num[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:
numbers = list(map(int,input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if a > b:
    if a > c:
        max = a
        if b > c:
            mid = b
            min = c
        else:
            mid = c
            min = b
    else:
        max = c
        mid = a
        min = b
        
else:
    if b > c:
        max = b
        if a > c:
            mid = a
            min = c
        else:
            mid = c
            min = a
    else:
        max = c
        mid = b
        min = a
            
    
print('{0} {1} {2}'.format(min, mid, max))

Submission status: Accepted

Solution code:
[x,y,z] = input().split(" ")

a = int(x)
b = int(y)
c = int(z)

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

numbers.sort()

print(*numbers)

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

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())
A = min(a, min(b,c))
C = max(a, max(b,c))
B = a+b+c-A-C
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 b < a:
  b,a = a,b
if c < b:
    c,b = b,c
if b < a:
    b,a = a,b
else:
     pass
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 < x < z:
  print(y, x, z)
elif y < z < x:
  print(y, z, x)
elif z < x < y:
  print(z, x, y)
elif z < y < x:
  print(z, y, x)
elif x == z and z < y:
  print(x, z, y)
elif x == y and y < z:
  print(x, y, z)
elif y == z and z < x:
  print(y, z, x)
else:
  print(x, y, z)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
a, b, c = (int(x) for x in input().split())
if(a < c < b or a == c < b):
    print(a, c, b)
elif(b < a < c or a == c > b):
    print(b, a, c)
elif(b < c < a):
    print(b, c, a)
elif(c < a < b):
    print(c, a, b)
elif(c < b < a or a == b > c or b == c < a):
    print(c, b, a)
else:
    print(a, b, c)

Submission status: Accepted

Solution code:
a = list(map(int, input().strip().split()))
N = len(a)
a.sort()
for j in range(0, N-1):
    print(a[j], end=" ")
print(a[N-1])

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:
# coding: utf-8
a,b,c=(int(x) for x in input().split())
x=0
if a>b:
    x=a
    a=b
    b=x
if a>c:
    x=a
    a=c
    c=x
if b>c:
    x=b
    b=c
    c=x
    
print("{} {} {}".format(a,b,c))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

numberList.sort()
print(" ".join(str(e)for e in numberList))

Submission status: Accepted

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

if a>b:
  x = a
  a = b
  b = x
if b>c:
  y = b
  b = c
  c = y
if a>b:
  z = a
  a = b
  b = z

print(a, b, c)

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
b = list(map(int,input().split()))
a = min(b)
c = max(b)
b.remove(a)
b.remove(c)
print(a,b[0],c)

Submission status: Accepted

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

lst.sort()
print(*lst)

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 = input().split()
l.sort()
str = ' '.join(l)
print(str)

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
s = 0
g = 0
if a < b:
    s = a
    g = b
else:
    s = b
    g = a
if c < s:
    print(str(c) + ' ' + str(s) + ' ' + str(g))
elif g < c:
    print(str(s) + ' ' + str(g) + ' ' + str(c))
else:
    print(str(s) + ' ' + str(c) + ' ' + str(g))

Submission status: Accepted

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

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

Submission status: Accepted

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

D.sort()

ans = " ".join(map(str,D))

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
	data = input().split()
	data.sort()
	print(data[0]+" "+data[1]+" "+data[2])

Submission status: Accepted

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

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

samp =[a,b,c]

for i in range(len(samp)):
    current = samp[i]
    j = i-1
    while (j >= 0 and samp[j] >  current):
        samp[j+1] = samp[j]
        j -= 1
    
    samp[j+1] = current
    
print("{} {} {}".format(samp[0],samp[1],samp[2]))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c=(int(x) for x in input().split())
for y in range(3):
    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:
l=list(map(int,input().split()))
l.sort()
print(str(l[0])+' '+str(l[1])+' '+str(l[2]))

Submission status: Accepted

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

if a > b:
    sub = a
    a = b
    b = sub
    
if a > c:
    sub = a
    a = c
    c = sub

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
print(" ".join(sorted(input().split(), key=lambda x: int(x))))

Submission status: Accepted

Solution code:
str_a, str_b ,str_c = input().split()
a, b , c = int(str_a),int(str_b), int(str_c)
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 <= a <= b:
    print(str(c) + " " + str(a) + " " + str(b))
else:
    print(str(c) + " " + str(b) + " " + str(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:
print(*sorted(map(int,input().split())))

Submission status: Accepted

Solution code:
x = []
x = input().split()
x[0],x[1],x[2]=int(x[0]),int(x[1]),int(x[2])
if x[0] > x[1]:
    a = x[0]
    x[0] = x[1]
    x[1] = a
if x[1] > x[2]:
    a = x[2]
    x[2] = x[1]
    x[1] = a
if x[0] > x[1]:
    a = x[0]
    x[0] = x[1]
    x[1] = a
print(str(x[0]),str(x[1]),str(x[2]))

Submission status: Accepted

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

temp = 0

for i in range(len(list)):
    for j in range(len(list)-1, i, -1):
        if list[j] < list[j-1]:
            temp = list[j]
            list[j] = list[j-1]
            list[j-1] = temp
    
print(list[0], list[1], list[2])

Submission status: Accepted

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

for x in range(3) :
    for y in range(x,3) :
        if table[x] > table[y]:
            table[x], table[y] = table[y], table[x]

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()
list = x.split()
[a, b, c] = list
list = [int(a), int(b), int(c)]
list.sort()
[a, b, c] = list
d = " "
ans = str(a) + d + str(b) + d +  str(c)

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

if b > c:
 tmp2 = c
 c = b
 b = tmp2

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x,y,z = map(str,input().split())
p = [x,y,z]
p.sort()
print(' '.join(map(str, p)))

Submission status: Accepted

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

if numbers[0] > numbers[1]:
    tmp = numbers[0]
    numbers[0] = numbers[1]
    numbers[1] = tmp

if numbers[1] > numbers[2]:
    tmp = numbers[1]
    numbers[1] = numbers[2]
    numbers[2] = tmp


if numbers[0] > numbers[1]:
    tmp = numbers[0]
    numbers[0] = numbers[1]
    numbers[1] = tmp

str_numbers = list(map(str, numbers))
print(' '.join(str_numbers))

Submission status: Accepted

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

if (a > b):
    p = a
    a = b
    b = p

if (b > c):
    p = b
    b = c
    c = p

if (a > b):
    p = a
    a = b
    b = p

print(a, b, c)

Submission status: Accepted

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

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

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

Submission status: Accepted

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

# # min
# small = min(datas)

# # max
# large = max(datas)

# for data in datas:
#     if small == data:
#         continue
#     elif large == data:
#         continue
#     else:
#         mid = data

# print("{0} {1} {2}".format(small, mid, large))

datas = list(map(int, input().split()))
sorted_datas = sorted(datas)

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

Submission status: Accepted

Solution code:
#ITP1_2_C
data = list(input().split())
print(" ".join(sorted(data)))

Submission status: Accepted

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

def quicksort(list):
    if len(list) < 2:
        return list
    else:
        pivot = list[0]
        #pivotよりも小さい要素を全て含んだ部分配列
        less = [i for i in list[1:] if i <= pivot]
        #pivotよりも大きい要素を含んだ部分配列
        greater = [i for i in list[1:] if i > pivot]

        return quicksort(less) + [pivot] + quicksort(greater)

sorted = quicksort(abc)
print(sorted[0],sorted[1],sorted[2])

Submission status: Accepted

Solution code:
a = [int(x) for x in input().split()]
a.sort()
for j in range(2):
    print(a[j],end = ' ')

print(a[2])

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

# for A in a:
#     print(A)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(input().split())
a.sort()

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

Submission status: Accepted

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

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

print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
'''
import statistics

a, b, c = map(int, input().split(' '))
max_abc = max(a, b, c)
min_abc = min(a, b, c)
med_abc = statistics.median([a, b, c])
print(str(min_abc) + ' ' + str(med_abc) + ' ' + str(max_abc))
'''
a, b, c = map(int, input().split(' '))
sort_abc = sorted([a, b, c], reverse = False)
print(str(sort_abc[0]) + ' ' + str(sort_abc[1]) + ' ' +  str(sort_abc[2]))

Submission status: Accepted

Solution code:
i = input()
a,b,c = map(int,i.split())
list=[a,b,c]
sortlist = sorted(list)
print(sortlist[0],sortlist[1],sortlist[2],sep=" ")

Submission status: Accepted

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

Submission status: Accepted

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

list_size = len(x)
for i in range(list_size):
    for j in range(list_size-i-1):
        if x[j] > x[(j+1)]:
            t = x[j]
            x[j] = x[(j+1)]
            x[(j+1)] = t
        
print(x[0],x[1],x[2])

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
Min = min(a,b,c)
if Min==a:
    Mid = min(b,c)
    Max = max(b,c)
elif Min==b:
    Mid = min(a,c)
    Max = max(a,c)
else:
    Mid = min(a, b)
    Max = max(a, b)
print(Min,Mid,Max)

Submission status: Accepted

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

# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_2_C

if __name__ == '__main__':
    a, b, c = map(int, raw_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:
x=input()
y=x.split()
a=int(y[0])
b=int(y[1])
c=int(y[2])
if a>b:
    m=b
    b=a
    a=m
if b>c:
    m=c
    c=b
    b=m
if a>b:
    m=b
    b=a
    a=m
print (a,b,c)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x = list(map(int,input().split()))
a = x[0]
b = x[1]
c = x[2]
if a < b:
    if b < c:
        print(a, b, c)
    if c < b:
        if a < c:
            print(a, c, b)
        else:
            print(c, a, b)
if b < a:
    if a < c:
        print(b, a, c)
    else:
        if c < a:
            if b < c:
                print(b, c, a)
            else:
                print(c, b, a)

Submission status: Accepted

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