Problem:


Reversing Numbers

  Write a program which reads a sequence and prints it in the reverse order.

Input

The input is given in the following format:

n
a1 a2 . . . an

n is the size of the sequence and ai is the ith element of the sequence.

Output

  Print the reversed sequence in a line. Print a single space character between adjacent elements (Note that your program should not put a space character after the last element).

Constraints

n ≤ 100

0 ≤ ai < 1000

Sample Input 1

5
1 2 3 4 5

Sample Output 1

5 4 3 2 1

Sample Input 2

8
3 3 4 4 5 8 7 9

Sample Output 2

9 7 8 5 4 4 3 3

Note

      解説      

	



Sample input:
5
1 2 3 4 5


Sample output:
5 4 3 2 1

Submission status: Wrong Answer

Solution code:
import sys


def main():
    sys.stdin.readline()
    list1 = list(map(str, sys.stdin.readline().split()))
    list.sort(list1, reverse=True)
    print(' '.join(list1))
    return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys


def main():
    sys.stdin.readline()
    list1 = list(map(int, sys.stdin.readline().split()))
    list.sort(list1, reverse=True)
    print(' '.join(map(str, list1)))
    return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
num = map(int, raw_input().split())
num.sort(reverse = True)
print num

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
num = map(int, raw_input().split())
num.sort()
num.sort(reverse = True)
print num

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
num = map(int, raw_input().split())
num.sort()
num.sort(reverse = True)
print " ".join(map(str, num))

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
num = map(int, raw_input().split())
num.sort(reverse = True)
print " ".join(map(str, num))

Submission status: Wrong Answer

Solution code:
n = input()
a = input()
a = a[::-1]
print(a)

Submission status: Wrong Answer

Solution code:
N=int(input())
s_str=input().split()
s_int=[int(s) for s in s_str]
list=[]
s_int.reverse()
for i in s_int:
    list.append(i)
for i in range(N):
    print("{} ".format(i))

Submission status: Wrong Answer

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

for i in (reversed(a)):
    print(i)

Submission status: Wrong Answer

Solution code:
input()
print(input()[::-1])

Submission status: Wrong Answer

Solution code:
from sys import stdin

stdin.readline().rstrip()
a = [int(x) for x in stdin.readline().rstrip().split()]
a.sort(reverse=True)
print(*a)

Submission status: Wrong Answer

Solution code:
n = int(input())

a = list(map(int, input().split()))
#print(a)
b = sorted(a)
c = sorted(b,reverse = True)
print(c)

Submission status: Wrong Answer

Solution code:
n = int(input())

a = list(map(int, input().split()))
#print(a)
b = sorted(a)
c = sorted(b,reverse = True)
print(*c)

Submission status: Wrong Answer

Solution code:
n = int(input())

a = list(map(int, input().split()))
#print(a)
c = sorted(a,reverse = True)
print(*c)

Submission status: Wrong Answer

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

print(i)

Submission status: Wrong Answer

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

print(i)

Submission status: Wrong Answer

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

for i in reversed(ls):
  print(i, end = ' ')
print()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input().split()
for i in (reversed(s)):
    print(s)

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input().split()
for i in (reversed(s)):
    print(i)

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input().split()
S = s.reverse()
print(S)

Submission status: Wrong Answer

Solution code:
n = int(input())
s = input().split()
s.reverse()
print(s)

Submission status: Wrong Answer

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

output = []
lengh = len(data)
for tmp in range(lengh):
	output += data.pop(-1)
print(output)

Submission status: Wrong Answer

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

output = []
lengh = len(data)
for tmp in range(lengh):
	output += [data.pop(-1)]
print(output)

Submission status: Wrong Answer

Solution code:
n = input()
l = input().split()
for a in l:
  a = int(a)
x = list()  
for i in (reversed(l)):
  x.append(i)
print(x)

Submission status: Wrong Answer

Solution code:
n = int(input())
l = list(map(int, input().split()))
l = sorted(l, reverse=True)
s = ''
for tmp in l:
    s += str(tmp) + ' '
print(s.rstrip())

Submission status: Wrong Answer

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

for i in l[::-1]:
    print(i)

Submission status: Wrong Answer

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

for i in l[::-1]:
    if i > 1:
        print(" ")
    print("%d " %i, end="")
print()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

for i in range(n):
    if i > 1:
        print(" ")
    print(l[i], end="")
print()

Submission status: Wrong Answer

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


print(*ns)

Submission status: Wrong Answer

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


print(*ns[::-1])

Submission status: Wrong Answer

Solution code:
cnt = input()
li = list(map(int,input().split()))
re_li = li[::-1]
print(re_li)

Submission status: Wrong Answer

Solution code:
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
for i in range(cnt):
    print(re_li[i])

Submission status: Wrong Answer

Solution code:
n = int(input())

y =list(map(int,input().split()))
x = sorted(y,reverse=True)

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

Submission status: Wrong Answer

Solution code:
n = input();
j = map(int,raw_input().split(" "));
j.reverse()
print n
for i in range(0,n-1):
	print j[i],
print j[n-1]

Submission status: Wrong Answer

Solution code:
n = input()
list = []
list = map(int, raw_input().split())
list.reverse()
print list

Submission status: Wrong Answer

Solution code:
input()
print raw_input()[::-1]

Submission status: Wrong Answer

Solution code:
input()
print " ".join(raw_input().split())

Submission status: Wrong Answer

Solution code:
input()
print raw_input().strip()[::-1]

Submission status: Wrong Answer

Solution code:
class itp1_6a:
    def reverse(self,n,a):
        for i in range(1,n+1):
            print(a[-1*i])
if __name__=="__main__":
    n=input()
    a=map(int,raw_input().split(" "))
    run=itp1_6a()
    run.reverse(n,a)

Submission status: Wrong Answer

Solution code:
n = input() 
a = sorted(map(int,raw_input().split())) 
a.reverse()
for i in range(n):
    print a[i],

Submission status: Wrong Answer

Solution code:
n = input()
a = sorted(map(int,raw_input().split()))
a.reverse()
for i in range(n):
    print a[i],

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
value = int(raw_input())
string = ""
for x in range(value + 1):
  if x == 0:
    continue

  string += str(x)

print(" ".join(string))

Submission status: Wrong Answer

Solution code:
value = int(raw_input())
string = ""
for x in range(value + 1):
  if x == 0:
    continue

  string += str(x)

print(" ".join(string)[::-1])

Submission status: Wrong Answer

Solution code:
input()
print(input()[::-1])

Submission status: Wrong Answer

Solution code:
n = input()
nums = map(int,raw_input().split())
for x in range(n-1, -1, -1):
    print nums[x]

Submission status: Wrong Answer

Solution code:
L=[]
n=input()
L=raw_input()
L=reversed(L)
print "".join(L)

Submission status: Wrong Answer

Solution code:
L=[]
n=input()
L=raw_input()
L=L[::-1]
print "".join(L)

Submission status: Wrong Answer

Solution code:
input()
xs = input().split()
print(reversed(xs))

Submission status: Wrong Answer

Solution code:
input()
xs = input().split()
print(list(reversed(xs)))

Submission status: Wrong Answer

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

x = []
i = sys.stdin.readlines()
for a in i[1].split():
	x+=a
x.reverse()

for c in x:
	print c,

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python

import sys

x = []
i = sys.stdin.readlines()
for a in i[1].split():
	x+=a
x.reverse()

for c in x[0:-1]:
	print c,
print x[-1]

Submission status: Wrong Answer

Solution code:
import sys

x = []
i = sys.stdin.readlines()
for a in i[1].split():
	x+=a
x.reverse()

for c in x[0:-1]:
	print c,
print x[-1]

Submission status: Wrong Answer

Solution code:
n=input()
a=map(int,raw_input().split())
a.reverse()
for i in a:
   print i

Submission status: Wrong Answer

Solution code:
n=input()
a=map(int,raw_input().split())
a.reverse()
for i in a:
   print "%d " %(i)

Submission status: Wrong Answer

Solution code:
x=raw_input().split()
print x[::-1]

Submission status: Wrong Answer

Solution code:
n=int(raw_input())
l=map(int,raw_input().split())
l.reverse()
print l

Submission status: Wrong Answer

Solution code:
n=int(raw_input())
l=map(int,raw_input().split())
l.reverse()
print 'l'

Submission status: Wrong Answer

Solution code:
n=int(raw_input())
a=map(int,raw_input().split())
a.reverse()
for i in a:
    print i

Submission status: Wrong Answer

Solution code:

n = input()
a = map(int,raw_input().split() )
for i in range(n):
    print a[ n-1-i]

Submission status: Wrong Answer

Solution code:
n = input()

for i in range(n):
    print n - i,

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
a = map(int,raw_input().split())
a.reverse()
for i in a:
    print i

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
a = map(int,raw_input().split())
a.reverse()
for i in range(len(a)):
    print i,

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
a = map(int,raw_input().split())
a.reverse()
for i in range(len(a)):
    print i

Submission status: Wrong Answer

Solution code:
n = raw_input().split()
n.reverse()
print n

Submission status: Wrong Answer

Solution code:
n = raw_input().split()
n.reverse()
print str(n)

Submission status: Wrong Answer

Solution code:
n = raw_input().split()
n.reverse()
s = ''
for i in xrange(len(n)):
    s += n[i] + ' '
print s

Submission status: Wrong Answer

Solution code:
n = input()
m = map(int, raw_input().split())
m2 = [0 for i in xrange(n)]

for i in xrange(n):
    m2[n-i-1] = m[i]
print m2

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input()
l = input().split()
print(l[::-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()
lst = map(int,raw_input().split())
print lst[::-1]

Submission status: Wrong Answer

Solution code:
n=input()
print raw_input()[::-1]

Submission status: Wrong Answer

Solution code:
n=input()
print raw_input().split()[::-1]

Submission status: Wrong Answer

Solution code:
n = input()
A = [i for i in n.split()]
A.reverse()
print(' '.join(A))

Submission status: Wrong Answer

Solution code:
A = [i for i in input().split()]
A.reverse()
print(' '.join(A))

Submission status: Wrong Answer

Solution code:
n = int(input())
line = '{0}'.format(n)
n -= 1
while n:
    line += ' {0}'.format(n)
    n -= 1
print(line)

Submission status: Wrong Answer

Solution code:
input()
num =  input()
print(num[::-1])

Submission status: Wrong Answer

Solution code:
n = input()
i = map(int, raw_input().split())
i.sort()
i.reverse()
print i

Submission status: Wrong Answer

Solution code:
n = input()
i = map(int, raw_input().split())
i.sort(reverse=True)
print i

Submission status: Wrong Answer

Solution code:
n = input()
i = map(int, raw_input().split())
i.sort(reverse=True,key=int)
print i

Submission status: Wrong Answer

Solution code:
n = input()
i = raw_input().split(" ")
i.reverse()
print i

Submission status: Wrong Answer

Solution code:
n = input()
i = map(int, raw_input().split())
i.reverse()
print i

Submission status: Wrong Answer

Solution code:
x = int(input())
y = [int(i) for i in input().split()]
for i in range(x,0,-1):
    print('{0} '.format(i),end='')

Submission status: Wrong Answer

Solution code:
x = int(input())
y = [int(i) for i in input().split()]
print("{0}".format(x),end='')
for i in range(x-2, 0-1, -1):
    print(' {0}'.format(y[i]), end='')

Submission status: Wrong Answer

Solution code:
input()

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

numbers.reverse()
print(numbers)

Submission status: Wrong Answer

Solution code:
input()
a = input().split()
a.reverse()
for b in a:
    print(b, end='_')

Submission status: Wrong Answer

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

print(a)
a.reverse()
print(" ".join(a))

Submission status: Wrong Answer

Solution code:
n = int(input())
a = input()
print(a[::-1])

Submission status: Wrong Answer

Solution code:
n=int(input())
list=sorted([int(x) for x in input().split()], reverse=True)
st=""
for i in range(n):
    st=st+str(list[i])+" "
st=st[0:2*n-1]
print(st)

Submission status: Wrong Answer

Solution code:
L = raw_input().split()
L.reverse()
for x in L:
    print x,

Submission status: Wrong Answer

Solution code:
a = input()
x = input()
y = x.split(' ')
y.sort(reverse=True)
b = ' '.join(y)
print(' '+b)

Submission status: Wrong Answer

Solution code:
a = input()
x = input()
y = x.split(' ')
y.sort(reverse=True,key=int)
b = ' '.join(y)
print(' '+b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input()
l = [int(i) for i in input().split()]
print(l[::-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()
a = map(str,raw_input().split())
a.reverse()
print "{}".format(a).replace("[","").replace(","," ").replace("]","")

Submission status: Wrong Answer

Solution code:
n = input()
a = raw_input().split()
a.reverse()
print "{}".format(a).replace("[","").replace(","," ").replace("]","")

Submission status: Wrong Answer

Solution code:
n = input()
a = map(str,raw_input().split())
a.reverse()
print "{}".format(str(a)).replace("[","").replace(","," ").replace("]","")

Submission status: Wrong Answer

Solution code:
n = int(input())
num_li = list(map(int, input().split()))
print(list(reversed(num_li)))

Submission status: Wrong Answer

Solution code:
print " ".join([i for i in raw_input().split()][::-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input()
a = list(map(int, input().split()))
a = sorted(a, reverse=True)
print(" ".join(map(str, a[::-1])))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input();print(input()[::-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input()
array = input().split()
print(array.reverse())

Submission status: Wrong Answer

Solution code:
'''
ITP-1_6-A
 ??°???????????¢
?????????????????°???????????????????????????????????°?????????????????????????????????
???Input
??\????????\????????¢?????§?????????????????????
n
a1 a2 . . . an
n ?????°????????????????????????ai ??? i ???????????°?????¨????????????
???Output
???????????°?????????????????????????????????????????°??????????´??????????????????????????????\???????????????
??????????????°????????????????????\??????????????¨?????¨????????????????????????
'''
# import
import sys

# ?????°??????????????????
## ??°????????????
cntData = int(input())
#inputData = map(int, input().split())
## ??°
inputData = input().split(" ")

# sort
inputData.sort(reverse=True)

# Output
print(" ".join(inputData))

Submission status: Wrong Answer

Solution code:
input()
print(' '.join(*[input().split()])[::-1])

Submission status: Wrong Answer

Solution code:
import sys

lines = [line for line in sys.stdin]

n = int(lines[0])
s = lines[1]
print (s[::-1])

Submission status: Wrong Answer

Solution code:
a = input ()
numbers = map(int,raw_input().split())
numbers.sort()
numbers.reverse()
print ' '.join(map(str,numbers))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(len(a)):
    for j in range(i,len(a)):
        if a[j] > a[i]:
            ret = a[i]
            a[i] = a[j]
            a[j] = ret
print(" ".join(map(str,a)))

Submission status: Wrong Answer

Solution code:
length = int(input())
nums = list(map(int, input().split()))
print(nums[::-1])

Submission status: Wrong Answer

Solution code:
input()
a = input().split()
a.sort(reverse = True)
print(' '.join(a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
bb = []
input()
aa = [ i for i in input().split()]
aa.sort()
for kk in aa[::-1]:
	bb.append(kk)
print(' '.join(map(str, bb))) #map(func, iterable)

Submission status: Wrong Answer

Solution code:
bb = []
input()
aa = [ int(i) for i in input().split()]
aa.sort()
for kk in aa[::-1]:
	bb.append(kk)
print(' '.join(map(str, bb))) #map(func, iterable)

Submission status: Wrong Answer

Solution code:
# coding : utf-8
'''
?????????????????°???????????????????????????????????°?????????????????????????????????
'''
bb = []
input()
aa = [ int(i) for i in input().split()]
aa.sort()
for kk in aa[::-1]:
	bb.append(kk)
print(' '.join(map(str, bb)))

Submission status: Wrong Answer

Solution code:
n = input()
print(input()[::-1])

Submission status: Wrong Answer

Solution code:
num=int(input())
input_data = [int(i) for i in input().split()]
input_data.reverse()
print("{}".format(input_data[0]),end='')
#for i in range(1,num):
#	print(" {}".format(input_data[i]),end='')
#print('\n')

Submission status: Wrong Answer

Solution code:
num=int(input())
input_data = [int(i) for i in input().split()]
input_data.reverse()
print("{}".format(input_data[0]),end='')
for i in range(1,num):
	print(" {}".format(input_data[i]))
#print('\n')

Submission status: Wrong Answer

Solution code:
num=int(input())
input_data = [int(i) for i in input().split()]
input_data.reverse()
print("{}".format(input_data[0]),end='')
for i in range(1,num):
	print(" {}".format(input_data[i]))
print('\n')

Submission status: Wrong Answer

Solution code:
dummy = input()
print(input()[::-1])

Submission status: Wrong Answer

Solution code:
n = input()
print(" ".join(input().split())[::-1])

Submission status: Wrong Answer

Solution code:
n = int(input())
print(" ".join(input().split())[::-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
x=[int(i) for i in input().split()]
x=sorted(x,reverse=True)
for i in range(n):
    if n-1 ==i:
        print(x[i])
    else:
        print(x[i],"",end="")

Submission status: Wrong Answer

Solution code:
num = ""
a = input()
W = [int(x) for x in input().split()]
for i in W:
    num+=str(i)+' '                                                         
print(num[::-1])

Submission status: Wrong Answer

Solution code:
n=input()
n=int(n)
a=input().split()
a=a[::-1]
for i in a:
    print(" ".join(a))

Submission status: Wrong Answer

Solution code:
input()
list1 = list(map(int, input().split()))
list1.sort()
result=""
for i in range(0,len(list1)):
    result += str(list1[i])+" "
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in a:
    print i

Submission status: Wrong Answer

Solution code:
numbers = list(input().split())
print(" ".join(numbers[::-1]))

Submission status: Wrong Answer

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

print(nums[-1], end="")
for i in range(len(nums)-2, -1, -1):
    print(" {0}".format(nums[i]), end="")

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
a.reverse()
sum = ""
for i in a:
	sum = sum + str(i) + " "
print(sum[:-1])

Submission status: Wrong Answer

Solution code:
count = int(input())
num = input()
num = num[::-1]
print(num)

Submission status: Wrong Answer

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

for idx in range(n):
    print(I[idx], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: Wrong Answer

Solution code:
import copy

n = int(input())
a = input().split()

o = [int(i) for i in a]

for idx in range(n):
    print(o[idx], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: Wrong Answer

Solution code:
print(" ".join(reversed(input().split())))

Submission status: Wrong Answer

Solution code:
n = int(input())

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

a.sort(reverse=True)

for i in range(n):
    print(a[i],end="")

Submission status: Wrong Answer

Solution code:
input()
a=list(input().split()[::-1])
print(a)

Submission status: Wrong Answer

Solution code:
_ = input()

print("".join(reversed(input())))

Submission status: Wrong Answer

Solution code:
input()
text=input()
print(text[::-1])

Submission status: Wrong Answer

Solution code:
N = int(input())
Arr = list(map(int, input().split()))
for i in range(N):
 if i==N-1:
  print(Arr[0])
 else:
  print(str(Arr[N-1-i]) + " ")

Submission status: Wrong Answer

Solution code:
# (c) midandfeed
q = [int(x) for x in input().split()]

for x in q[::-1]:
	print(x, end=' ')
print()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
array = raw_input().split()
print " ".join(sorted(array,reverse=True))

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
array = raw_input().split()
for i in reversed(range(n)):
    print i,

Submission status: Wrong Answer

Solution code:
n = int(input())

a = [0] * n
a = list(map(int, input().split()))
print (list(reversed(a)))

Submission status: Wrong Answer

Solution code:
s=input()
print(input()[::-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
LEN = int(input())
a = list(map(int, input().split()))
b = [a[-(i+1)] for i in range(LEN)]
print(b)

Submission status: Wrong Answer

Solution code:
def main():
    n = int(input())
    a = input()
    print(a[::-1])

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    n = int(input())
    a = map(int, input().split())
    print(" ".join(map(str, sorted(a, reverse=True))))

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
input()
print(*sorted(input().split()))

Submission status: Wrong Answer

Solution code:
t = eval(input());
x = input();
print(x[::-1]);

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()
print(" ".join(input()[::-1]))

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
a = raw_input()
a = a.split(" ")
an = map(int,a)
an.sort(reverse=True)
an = map(str,an)
print " ".join(an)

Submission status: Wrong Answer

Solution code:
input()
A = input()
print(A[::-1])

Submission status: Wrong Answer

Solution code:
input()
A = input().split()
print(A[::-1])

Submission status: Wrong Answer

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


buffer2 = []
for i in buffer:
    buffer2.append(i)

for num in range(len(buffer)):
        buffer2[-(num+1)] = buffer[num]
        
print(buffer2)

Submission status: Wrong Answer

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

import sys

n = int(sys.stdin.readline())
_list = list(map(int, sys.stdin.readline().split()))

_list.sort(reverse=True)
str_list = list(map(str, _list))

print(' '.join(str_list))

Submission status: Wrong Answer

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

import sys

n = int(sys.stdin.readline())
_list = list(map(int, sys.stdin.readline().split()))

str_list = list()
while _list:
    if len(_list) == 1:
        a = _list.pop()
        str_list.append(str(a))
        break
    a = _list.pop()
    b = _list.pop()
    if a > b:
        str_list.append(str(a))
        str_list.append(str(b))
    else:
        str_list.append(str(b))
        str_list.append(str(a))

print(' '.join(str_list))

Submission status: Wrong Answer

Solution code:

n=int(input())

a=input().split()

Submission status: Wrong Answer

Solution code:

n=int(input())

a=input().split()


for i in range(n):
    out=a[(n-i-1)]
    print(str(out))
print()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

length = int(sys.stdin.readline())
num_seq = sys.stdin.readline()

for i in range(1,length):
    print(num_seq[length - i],end=' ')
print(num_seq[0],end='')

Submission status: Wrong Answer

Solution code:
import sys

length = int(sys.stdin.readline())
num_seq = sys.stdin.readline().split()
print(num_seq)

for i in range(1,length):
    print(num_seq[length - i],end=' ')
print(num_seq[0],end='')

Submission status: Wrong Answer

Solution code:
import sys

length = int(sys.stdin.readline())
num_seq = sys.stdin.readline().split()
print(num_seq)

for i in range(1,length):
    print(num_seq[length - i],end=' ')
print(num_seq[0])

Submission status: Wrong Answer

Solution code:
import sys

length = int(sys.stdin.readline())
num_seq = [ int(num) for num in sys.stdin.readline().split() ]
print(num_seq)

for i in range(1,length):
    print(num_seq[length - i],end=' ')
print(num_seq[0],end='')

Submission status: Wrong Answer

Solution code:
import sys

length = int(sys.stdin.readline())
num_seq = [ int(num) for num in sys.stdin.readline().split() ]
print(num_seq)

for i in range(1,length):
    print(num_seq[length - i],end='')
    print(' ',end='')
print(num_seq[0],end='')

Submission status: Wrong Answer

Solution code:
n=int(input())
l=list(map(int,input().split()))
print(l[::-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
l=list(map(int,input().split()))
l.reverse()
print( ','.join(list(map( lambda x: str(x), l ))) )

Submission status: Wrong Answer

Solution code:
n = int(input())
arr = list(map(int, input().split(" ")))
rev = reversed(arr)

for item in rev:
	print(str(n) + ' ' + ' '.join(map(str, rev)))

Submission status: Wrong Answer

Solution code:
n=int(input())
r=input().split()
for e in reversed(r):
   print(e)

Submission status: Wrong Answer

Solution code:
n = int(input())
num = [int(i) for i in input().split()]
for i in range(round(len(num)/2)):
    num[i],num[len(num)-i-1] = num[len(num)-i-1],num[i]
print(num)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=input().split()
a.reverse()
for i in a:
    print(" "+ str(a))

Submission status: Wrong Answer

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