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

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

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

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

Submission status: Accepted

Solution code:
a, b, c, = map(int,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<=c:
    print(f"{a} {b} {c}")
elif a<=c<=b:
    print(f"{a} {c} {b}")
elif b<=a<=c:
    print(f"{b} {a} {c}")
elif b<=c<=a:
    print(f"{b} {c} {a}")
elif c<=a<=b:
    print(f"{c} {a} {b}")
elif c<=b<=a:
    print(f"{c} {b} {a}")

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
x = map(int,input().split())
print(*sorted(x))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
line = (int(x) for x in input().split())
# 3つの数の整列
hoge = sorted(line)
print(hoge[0], hoge[1], hoge[2], end="\n")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=sorted(input().split())
print(f"{a} {b} {c}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a>b:
    a,b=b,a
else:
    a,b=a,b
if b>c:
    b,c=c,b
else:
    b,c=b,c
if a>b:
    a,b=b,a
else:
    a,b=a,b
print(f'{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:
x = sorted(map(int,input().split()))
print (x[0],x[1],x[2])

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().split()
for j in range(len(s)):
  for k in range(j-1,-1,-1):
    if s[k] >= s[k+1]:
      s[k],s[k+1] = s[k+1],s[k]
a = int(s[0])
b = int(s[1])
c = int(s[2])
print(a,b,c)

Submission status: Accepted

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

print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
d=min(a,b,c)
e=max(a,b,c)
if a!=d and a!=e:
    f=a
elif b!=d and b!=e:
    f=b
else:
    f=c
print(d,f,e)

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:
num = list(map(int,input().split()))
num.sort()
for i in range(len(num)-1):
    print(num[i],end=' ')
print(num[len(num)-1])

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

Submission status: Accepted

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

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

a.sort()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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:
print(' '.join(map(str,sorted(map(int, 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:
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 :
    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=(int(x) for x in input().split())
if a<=b<=c:
    print(a,b,c)
elif a<=c<=b:
    print(a,c,b)
elif b<=a<=c:
    print(b,a,c)
elif b<=c<=a:
    print(b,c,a)
elif c<=a<=b:
    print(c,a,b)
else:
    print(c,b,a)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(a,b,c)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(a , b , c)

Submission status: Accepted

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

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

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

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

print(a, b, c)

Submission status: Accepted

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

x = a, b, c
new_x = sorted(x)



print(*new_x)

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(f"{a} {b} {c}")

Submission status: Accepted

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

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# coding: utf-8
a=list(map(int,input().split()))
b=sorted(a)
print('{} {} {}'.format(b[0],b[1],b[2]))

Submission status: Accepted

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

Submission status: Accepted

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

a,b,c=sorted([a,b,c],reverse=True)

print(c,b,a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nums = [int(i) for i in input().split()]
ans = sorted(nums)
print(str(ans[0]) + " " + str(ans[1]) + " " + str(ans[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=list(map(int,input().split()))
sorted(a)
print(*sorted(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
    else:
        b,c=b,c
else:
    a,b=a,b
    if b>c:
        b,c=c,b
    else:
        b,c=b,c

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

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

Submission status: Accepted

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

print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

#d=a
#e=b
#f=c

#result='{0}{1}{2}'.format(d,e,f)
    
    
if b<a:
    if c<b:
        if c<a:
            print(c,end=" ")
            print(b,end=" ")
            print(a)

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

Submission status: Accepted

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

mun.sort()

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if a<b:
    if a<c:
        if b<c:
            print(a,b,c)
        else:
            print(a,c,b)
    else:
        print(c,a,b)
else:
    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:
l=list(map(int,input().split()))
l.sort()
print(*l)

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:
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:
list = sorted(map(int,raw_input().split()))
strlist = map(str,list)
print strlist[0] + ' ' + strlist[1] + ' ' + strlist[2]

Submission status: Accepted

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

x1 = min(a,b,c)
x2 = max(a,b,c)
x3 = (a+b+c)-x1-x2

print(x1,x3,x2)

Submission status: Accepted

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

for i in range(3):
    for j in range(2-i):
        if x[j]>x[j+1]:
            temp = x[j]
            x[j] = x[j+1]
            x[j+1] = temp

print(*x)

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

L=sorted(l)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

a = list(map(int, input().split()))

if a[1] < a[0]:
    tmp = a[1]
    a[1] = a[0]
    a[0] = tmp

if a[2] < a[1]:
    tmp = a[2]
    a[2] = a[1]
    a[1] = tmp

if a[1] < a[0]:
    tmp = a[1]
    a[1] = a[0]
    a[0] = tmp
    
print(*a, sep=' ')

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()))
print(*sorted(i))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

num =list(map(int,input().split()))

num.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if a > b:
  temp = a
  a = b
  b = temp

# 現時点で a < b

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

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 = 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:
    a,b=b,a
if b>c:
    b,c=c,b
if a>c:
    a,c=c,a
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 :
    a,b=b,a
    
if c<b :
    b,c=c,b
    
if b<a :
    a,b=b,a  

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

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= (int(i) for i in 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)

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

Submission status: Accepted

Solution code:


a,b,c=map(int,input().split())
x=[a,b,c]
for  j in range(2,0,-1):
    for i in range(j):
        if x[i]>x[i+1]:
            x[i],x[i+1]=x[i+1],x[i]
print(x[0],x[1],x[2])

Submission status: Accepted

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

if int(list[0])>int(list[1]):
    list=[list[1],list[0],list[2]]
if int(list[1])>int(list[2]):
    list=[list[0],list[2],list[1]]
if int(list[0])>int(list[1]):
    list=[list[1],list[0],list[2]]

a,b,c=list

print(a,b,c)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
L=[a,b,c]
L.sort()
L = [str(i) for i in L]
s=' '.join(L)
print(s)

Submission status: Accepted

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

k=[a, b, c]

k.sort()
print(*k)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
max=[]
a,b,c=raw_input().split()

max.append(a)
max.append(b)
max.append(c)

if(max[0]>max[1]):
    max[0]=b
    max[1]=a
if(max[1]>max[2]):
    d=max[1]
    max[1] = max[2]
    max[2] = d
if(max[0]>max[1]):
    e=max[0]
    max[0] = max[1]
    max[1] = e

print(max[0]+' '+max[1]+' '+max[2])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a,b,c = map(int, 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 b>c:
        print(c, b, a)
    elif c>a:
        print(b, a, c)
    else:
        print(b, c, a)

Submission status: Accepted

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

Submission status: Accepted

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

if x[0] > x[1]:
    x = [x[1], x[0], x[2]]

if x[1] > x[2]:
    x = [x[0], x[2], x[1]]

if x[0] > x[1]:
    x = [x[1], x[0], x[2]]

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

Submission status: Accepted

Solution code:
inp = input().split()
abc = []    #空のリスト定義

for i in range(len(inp)):
    abc.append(int(inp[i]))    #空のリストに値を追加

ans = sorted(abc)
print('%d %d %d'%(ans[0],ans[1],ans[2]))

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

Submission status: Accepted

Solution code:
def sort():
    li= list(map(int, input().split()))
    len_li = len(li)
    for i in range(len_li):
        for j in range(len_li-1):
            if li[j] > li[j+1]:
                li[j], li[j+1] = li[j+1], li[j]
    print(' '.join(map(str, li)))


if __name__ == "__main__":
    sort()

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:
import fileinput

a_b_c = list(map(int, input().split()))

a, b, c = sorted(a_b_c)

print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
a,b,c = map(int,input().split(" "))
if c < b:
    temp = c
    c = b
    b = temp
if b < a:
    temp = b
    b = a
    a = temp
if c < b:
    temp = c
    c = b
    b = temp
print("{} {} {}".format(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:
L = list(map(int, input().split()))

L.sort()

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

Submission status: Accepted

Solution code:
I = input().split()
a = int(I[0])
b = int(I[1])
c = int(I[2])
0 <= a,b,c <=100
if (b < a) : 
    n = a
    a = b
    b = n
if (c < b) : 
    n = b 
    b = c
    c = n
if (b < a) :
    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 b<a:
    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:
nums= [int(x) for x in input().split()]

nums.sort()

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a,b,c=map(int,input().split())

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

print(a,b,c)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if a > b:
    
    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 = list(map(int, input().split()))
a_sorted = sorted(a)
print('{} {} {}'.format(a_sorted[0], a_sorted[1], a_sorted[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:
a , b , c =map(int,input().split())
if a > b:
    min = b
    b = a
    a = min
if b > c:
    mid = b
    b = c
    c = mid
if a > b:
    min = b
    b = a
    a = min
print(a , b ,c)

Submission status: Accepted

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

Submission status: Accepted

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

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

table.sort()

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

Submission status: Accepted

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

Submission status: Accepted

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