Problem:


Sorting Five Numbers

Write a program which reads five numbers and sorts them in descending order.

Input

Input consists of five numbers a, b, c, d and  e (-100000 ≤ a, b, c, d,e ≤ 100000). The five numbers are separeted by a space.

Output

Print the ordered numbers in a line. Adjacent numbers should be separated by a space.

Sample Input

3 6 9 7 5

Output for the Sample Input

9 7 6 5 3



Sample input:
3 6 9 7 5


Sample output:
9 7 6 5 3

Submission status: Accepted

Solution code:
import string
print string.join(map(str, sorted(map(int, raw_input().split())))[::-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print ' '.join([str(x) for x in sorted([int(x) for x in raw_input().split()])[::-1]])

Submission status: Accepted

Solution code:
ns = map(int, raw_input().split(" "))
count = 0
for loop in xrange(4):
	for i in xrange(4):
		if ns[i] < ns[i+1]:
			ns[i] , ns[i+1] = ns[i+1] , ns[i]
print ns[0],ns[1],ns[2],ns[3],ns[4]

Submission status: Accepted

Solution code:
import sys

for s in sys.stdin:
  arr = map(int, s.split(' '))
  arr = sorted(arr, reverse=True)
  arr = map(str, arr)
  print " ".join(arr)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input().split(' ')
for i in range(5):
    l[i] = int(l[i])
l.sort(reverse = True)
print(l[0], l[1], l[2], l[3], l[4])

Submission status: Accepted

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

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

a.sort()
a.reverse()
print(*a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
int_list = sorted(list(map(int,input().split()))) #標準入力してリスト化して小さい順に並べる
int_list.reverse() #リストの順番を逆にする
l = [str(a) for a in int_list] #リストのタイプをstr化する
s = ' '.join(l) #リストを連結する
print(s) #出力

Submission status: Accepted

Solution code:
*S, = map(int, input().split())
S.sort(reverse=1)
print(*S)

Submission status: Accepted

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

numList.sort(reverse=True)

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

Submission status: Accepted

Solution code:
s = list(map(int,input().split()))
print(*sorted(s)[::-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [ int(x) for x in input().strip().split() ]
a = sorted(a, reverse=True)
for i in range(len(a)):
    if i > 0:
        print(" ", end='')
    print(a[i], end='')
print()

Submission status: Accepted

Solution code:
while 1:
    try:
        n = (int(x) for x in input().split())
    except:break

    n = sorted(n,reverse=True)
    for i in range(5):
        if i :
            print(" ", end="")
        print(n[i],end="")
    print()

Submission status: Accepted

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

for i in range(5) :
    if(i != 4) :
        print(N[4 - i], end = " ")
    else :
        print(N[0])

Submission status: Accepted

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

L.sort(reverse=True)
print(" ".join(map(str,L)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(map(int, input().split()))
s.sort(reverse=1)
for i in range(4):
    print(s[i], end=" ")
print(s[4])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c,d,e=map(int,input().split())
list=[a,b,c,d,e]
list.sort()
list.reverse()
s = list
print(*s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding=utf-8

###
### for atcorder program
###

import sys
import math

# math class
class mymath:
    ### pi
    pi = 3.14159265358979323846264338

    ### Prime Number
    def pnum_eratosthenes(self, n):
        ptable = [0 for i in range(n+1)]
        plist = []

        for i in range(2, n+1):
            if ptable[i]==0:
                plist.append(i)
                for j in range(i+i, n+1, i):
                    ptable[j] = 1
        return plist

    ### GCD
    def gcd(self, a, b):
        if b == 0:
            return a
        return self.gcd(b, a%b)

    ### LCM
    def lcm(self, a, b):
        return (a*b)//self.gcd(a,b)

    ### Mat Multiplication
    def mul(self, A, B):
        ans = []
        for a in A:
            c = 0
            for j, row in enumerate(a):
                c += row*B[j]
            ans.append(c)
        return ans

mymath = mymath()

### output class
class output:
    ### list
    def list(self, l):
        l = list(l)
        #print(" ", end="")
        for i, num in enumerate(l):
            print(num, end="")
            if i != len(l)-1:
                print(" ", end="")
        print()

output = output()

### input sample
#i = input()
#N = int(input())
#A, B, C = [x for x in input().split()]
#N, K = [int(x) for x in input().split()]
#inlist = [int(w) for w in input().split()]

#R = float(input())
#A.append(list(map(int,input().split())))

#for line in sys.stdin.readlines():
#    x, y = [int(temp) for temp in line.split()]

#abc list
#abc = [chr(ord('a') + i) for i in range(26)]

### output sample
#print("{0} {1} {2:.5f}".format(A//B, A%B, A/B))
#print("{0:.6f} {1:.6f}".format(R*R*math.pi,R*2*math.pi))
#print(" {}".format(i), end="")

def get_input():
    N = []
    while True:
        try:
            #N.append(input())
            N.append(int(input()))
        except EOFError:
            break
    return N

N = [int(x) for x in input().split()]
N = sorted(N)

S = ''

for i in N[::-1]:
    S += str(i)+' ' 

print(S[:-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':

	print(*sorted(map(int,input().split()),reverse=True))

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
a.sort()
a.reverse()
for i in  range(5):
  if i == 4:
    print(a[i])
  else:
    print(a[i], "", end = "")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lst = map(int, raw_input().split())
lst.sort()
lst.reverse()
ans = str(lst[0])
for i in range(1, 5):
	ans = ans + ' ' + str(lst[i])
print ans

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lst = sorted(list(map(int, input().split())), reverse=True)
for i in range(len(lst)):
    if i != len(lst) - 1:
        print(lst[i], end = " ")
    else:
        print(lst[i])

Submission status: Accepted

Solution code:
a = []
a = [int(i) for i in input().split()]
a.sort(reverse=True)
b = " ".join([str(i) for i in a])
print(b)

Submission status: Accepted

Solution code:
a = list(map(int,(input().split())))
a = sorted(a,reverse=True)
for i in range(0,4):
    print(a[i],end=' ')
print(a[4])

Submission status: Accepted

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

Submission status: Accepted

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

num.sort(reverse=True)

for i, n in enumerate(num):
    if i == len(num) - 1:
        print(n)
    else:
        print(str(n) + " ", end="")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    a = list(map(int, input().split()))
    print(*sorted(a, reverse=True))

Submission status: Accepted

Solution code:
xs = sorted( [int(x) for x in input().split()] )[::-1]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def run():
    numbers = sorted(list(map(int, input().split())), reverse=True)
    print(' '.join([str(n) for n in numbers]))

if __name__ == '__main__':
    run()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Sorting Five Numbers
s = list(map(int, input().split()))
print(*sorted(s,reverse=True))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
    a = list(map(int, (input().split())))
    a = sorted(a, reverse=True)
    for i in range(4): print(a[i],end=' ')
    print(a[4])

Submission status: Runtime Error

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

for i in s:
    print(i, end="")
    if i != s[-1]:
        print(" ", end="")

print()

Submission status: Runtime Error

Solution code:
import sys

for input_line in sys.stdin:
    input_line = raw_input().split()
    input_line.sort(reverse=True)
    print ' '.join(input_line)

Submission status: Runtime Error

Solution code:
a=sorted(map(int,input().split()))[::-1]
print("%d %d %d %d %d"%tuple(a))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=map(str,raw_imput().split())
n.sort()
n.reverse()
print(' '.join(n))

Submission status: Runtime Error

Solution code:
n=map(int,raw_imput().split())
ans=[]
n.sort()
n.reverse()
for i in n:
	ans.append(str(i))
print(' '.join(ans))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
data = raw_input().split(' ')
data = sorted(map(int, data))[::-1]
print ' '.join(data)

Submission status: Runtime Error

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

print(' '.join(sorted([input().split()], reverse=True)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(*sorted(map(int, input().spilt()))[::-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

a = map(int, sys.stdin.readline().strip().split())
a.sort()
a.reverse()
print " ".join(a)

Submission status: Runtime Error

Solution code:
" ".join(map(str, sorted(map(int, raw_input().strip().sprit(" ")), lambda x , y: y - x)))

Submission status: Runtime Error

Solution code:
print " ".join(map(str, sorted(map(int, raw_input().strip().sprit(" ")), lambda x , y: y - x)))

Submission status: Runtime Error

Solution code:
l = map(int, raw_input().strip().split(" "));
print " ".join(sorted(l, lambda x, y: y - x));

Submission status: Runtime Error

Solution code:
'''
Created on Mar 22, 2013

@author: wukc
'''

from sys import stdin

a=map(int,stdin.readline().split())
a.sort()
print(" ".join(a[::-1]))

Submission status: Runtime Error

Solution code:
#!/usr/bin/python

line = raw_input()
l = map(int, line.strip().split())

l.sort()
l.reverse()
out = ' '.join(l)
print out

Submission status: Runtime Error

Solution code:
for e in sorted(map(int,input().split()))[::-1]:
    print e,
print

Submission status: Runtime Error

Solution code:


import sys

lineNumber = 0
#for line in [ "xlmw mw xli tmgxyvi xlex m xsso mr xli xvmt." ]:
for line in sys.stdin.readlines():
    lineNumber += 1

    # get data
    List = map(int, line.strip().split(","))

    List = List.sort().reverse()

    print "%d %d %d %d %d" % (List[0], List[1], List[2], List[3], List[4])

Submission status: Runtime Error

Solution code:


import sys

lineNumber = 0
#for line in [ "xlmw mw xli tmgxyvi xlex m xsso mr xli xvmt." ]:
for line in sys.stdin.readlines():
    lineNumber += 1

    # get data
    List = map(int, line.strip().split())

    List = List.sort().reverse()

    print "%d %d %d %d %d" % (List[0], List[1], List[2], List[3], List[4])

Submission status: Runtime Error

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

Submission status: WA: Presentation Error

Solution code:
s = input()
s = s.split()
n = []

for i in s:
    n.append(int(i))

isSorted = False

while(not isSorted):
    isSorted = True
    for i in range(4):
        if n[i] < n[i + 1]:
            temp = n[i]
            n[i] = n[i + 1]
            n[i + 1] = temp
            isSorted = False

for i in n:
    print(i,end = " ")

print()

Submission status: WA: Presentation Error

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

for i in s:
    print(str(i)+" ", end="")

print()

Submission status: WA: Presentation Error

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

for i in s:
    print(i, end="")
    if i != s[4]:
        print(" ", end="")

print()

Submission status: WA: Presentation Error

Solution code:
a=input().split(" ")
a.sort()
for i in a[::-1]:
    print(i,end='')

Submission status: WA: Presentation Error

Solution code:
a=input().split(" ")
a.sort()
for i in a[::-1]:
    print(str(i),end="")

Submission status: WA: Presentation Error

Solution code:
a=input().split(" ")
a.sort()
for i in a[::-1]:
    print(str(i),end=" ")

Submission status: WA: Presentation Error

Solution code:
def sort(num):
   l = len(num)
   for i in range(0,l):
        for j in range(0,l-i-1):
            if num[j] < num[j+1]:
               temp = num[j]
               num[j] = num[j+1]
               num[j+1]=temp
   for i in range(len(num)):
       print(num[i],end=' ')
a , b , c , d , e = map(int,input().split())
num = []
num.append(a)
num.append(b)
num.append(c)
num.append(d)
num.append(e)
sort(num)

Submission status: WA: Presentation Error

Solution code:
def sort(num):
   l = len(num)
   for i in range(0,l):
        for j in range(0,l-i-1):
            if num[j] < num[j+1]:
               temp = num[j]
               num[j] = num[j+1]
               num[j+1]=temp
   print(num[0],end='')
   for i in range(1,len(num)):
       print('',num[i],end='')

a , b , c , d , e = map(int,input().split())
num = []
num.append(a)
num.append(b)
num.append(c)
num.append(d)
num.append(e)
sort(num)

Submission status: WA: Presentation Error

Solution code:
import sys

line = sys.stdin.readline()
line = line.split(" ")
inp = []
for i in line:
    inp.append(int(i))
inp.sort()
inp.reverse()
for i in inp:
    if inp.index(i)<len(inp)-1:
        print (i, end=" ")
    else:
        print (i)

Submission status: WA: Presentation Error

Solution code:
numlist = [eval(item) for item in input().split()]
numlist.sort()
numlist.reverse()
for item in numlist:
	print(item, end = ' ')
print()

Submission status: WA: Presentation Error

Solution code:
numlist = [eval(item) for item in input().split()]
numlist.sort()
numlist.reverse()
for item in numlist:
	print(item, end = ' ')

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

data = input()
n = [0]*5
n[0],n[1],n[2],n[3],n[4] = map(int,data.split(' '))

count = 0
while True:
    for i in range(len(n)-1):
        if n[i] < n[i+1]:
            tmp = n[i]
            n[i] = n[i+1]
            n[i+1] = tmp
    count += 1
    if count == 5:
        break

for i in range(len(n)):
    print(n[i],end=' ')

print('')

Submission status: WA: Presentation Error

Solution code:
for x in sorted(list(map(int, input().split())), reverse=True):
    print(x, end=" ")

Submission status: WA: Presentation Error

Solution code:
user = input()
a = []
b = []
b = user.split()
for i in range(5):
    a.append(int(b[i]))
for j in range(4):
    for k in range(j+1, 5):  # j<k
        if a[j] < a[k]:
            tmp = a[j]
            a[j] = a[k]
            a[k] = tmp

for j in range(5):
    print(str(a[j]), end=" ")
print("")

Submission status: WA: Presentation Error

Solution code:
def main():
    a = list(map(int, input().split()))
    a.sort(reverse = True)
    for x in a:
        print(x, end = " ")
    print()




if __name__ == "__main__":
    main()

Submission status: WA: Presentation Error

Solution code:
line = [int(i) for i in input().split()]
line.sort(reverse=True)
for l in line:
  print(l, end=" ")

Submission status: WA: Presentation Error

Solution code:
line = [int(i) for i in input().split()]
line.sort(reverse=True)
for l in line:
  print(l, end=" ")
print()

Submission status: WA: Presentation Error

Solution code:
# AOJ 0018 Sorting Five Numbers
# Python3 2018.6.11 bal4u

a = list(map(int, input().split()))
a.sort(reverse=True)
for i in a:
	print(i, end = " ")
print()

Submission status: WA: Presentation Error

Solution code:
x = map(int,raw_input().split(' '))
x.sort()
x.reverse()
output = ''
for val in x:
	output += str(val) + ' '
output.strip()
print output

Submission status: WA: Presentation Error

Solution code:
for i in sorted(map(int, raw_input().split()))[::-1]: print i,
print ''