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

a.reverse()
for i in range(len(a)):
	if i!=len(a)-1:
		print(a[i])
	else:
		print(a[i],end=' ')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.sort()
a.reverse()
str = ""
for d in a:
    str +="%d "%(d)

print(str)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
b = []
count = 0
for i in a:
    count += 1
    b.append(a[n-count])
print(b)
print(" ".join(map(str, b)))

Submission status: Wrong Answer

Solution code:
n = int(input())
x = list(map(int, input().split()))
offset = x
for i in range(1, n+1):
   if i < n:
      print("offset[-i]", end=" ")
   else:
      print("offset[-i]", end="")

Submission status: Wrong Answer

Solution code:
n=int(input())

a=input().split()
b=[]
c=[]
i=0
while i<n:
    b.append(int(a[i]))
    i+=1

while n>0:
    c.append(max(b))
    b.remove(max(b))
    n=n-1

answer=str(c[0])
m=2
while m<i+1:
    answer=answer+" "+str(c[m-1])
    m=m+1
print(answer)

Submission status: Wrong Answer

Solution code:
n=int(input())

a=input().split()
b=[]
c=[]
i=0
while i<n:
    b.append(int(a[i]))
    i+=1

while n>0:
    c.append(max(b))
    b.remove(max(b))
    n=n-1

answer=str(c[0])
m=2
while m<i+1:
    answer=answer+" "+str(c[m-1])
    m=m+1
print(answer)

Submission status: Wrong Answer

Solution code:
n=int(input())

a=input().split()
b=[]
c=[]
i=0
while i<n:
    b.append(int(a[i]))
    i+=1

answer=str(b[0])
m=2
while m<i+1:
    answer=answer+" "+str(b[m-1])
    m=m+1
print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

n.sort()
n.reverse()
print(n)

Submission status: Wrong Answer

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

n.sort()
n.reverse()

result = map(str, n)
result = " ".join(result)
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.sort(reverse=True)
for i in a:
    print("{0} ".format(i),end="")

Submission status: Wrong Answer

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

a = input()
a = input()
print(a[::-1])

Submission status: Wrong Answer

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

x = input()
a = input()
print(a[::-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=input()
x=input()
a=' '.join(x)
print(a)

Submission status: Wrong Answer

Solution code:

Submission status: Wrong Answer

Solution code:
n = int(input())
li = list(map(int, input().split()))
li.sort()
for i in li:
    print('{}'.format(i), end=" ")

Submission status: Wrong Answer

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

lx = len(x)
for i in range(lx-1):
    print x[i],
print x[-1]

Submission status: Wrong Answer

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

while 0<N:
        m=n-1
        k=0
        while 0<m:
                if a[k]<=a[m]:
                        k=m
                m-=1
        print a[k],
        a[k]=0
        N-=1

Submission status: Wrong Answer

Solution code:
n=int(raw_input())
m=map(int, raw_input().split())
m.sort()
h=-1
for i in xrange(n):
    print str(m[h]),
    h-=1
print

Submission status: Wrong Answer

Solution code:
n=int(raw_input())
m=map(int, raw_input().split())
m.sort()
h=-1
for i in xrange(n):
    print str(m[h]),
    h-=1

Submission status: Wrong Answer

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

print a

Submission status: Wrong Answer

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

for i in range(a[0], 1):
    print a[i]

Submission status: Wrong Answer

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

for i in range(a[0], 1):
    print a[i]

Submission status: Wrong Answer

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

for i in range(a[0], 1):
    print a[i],

Submission status: Wrong Answer

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

for i in range(a[0], 1):
    print a[i-1],

Submission status: Wrong Answer

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

for i in range(len(a), 0):
    print a[i],

Submission status: Wrong Answer

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

for i in range(len(a)-1, 0):
    print a[i],

Submission status: Wrong Answer

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

a.reverse()
for i in range(0, len(a)-1):
    print a[i],

Submission status: Wrong Answer

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

a.reverse()
for i in range(0, r-1):
    print a[i],

Submission status: Wrong Answer

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

a.reverse()
for i in range(0, r-2):
    print a[i],
print a[r-1]

Submission status: Wrong Answer

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

a.reverse()
for i in range(0, r-2):
    print a[i]

Submission status: Wrong Answer

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

a.reverse()
prnt = ""
for i in range(0, r-2):
    prnt += str(a[i])
    prnt += " "

prnt += str(a[r-1])
print prnt

Submission status: Wrong Answer

Solution code:
n = input()
li = []
for item in map(int,raw_input().split()):
    if n >= 1:
        li.append(item)
    n -= 1
li.reverse()
print li

Submission status: Accepted

Solution code:
import sys


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

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ran = int(input())
list_a = [int(a) for a in input().split()]
list_a.reverse()
for i in range(int(ran)):
    if not i == ran-1:
        print('{} '.format(list_a[int(i)]), end = '')
    else:
        print('{}'.format(list_a[int(i)]))

Submission status: Accepted

Solution code:
input()
arr = list(map(str, input().split()))
arr.reverse()
print(' '.join(arr))

Submission status: Accepted

Solution code:
input()
list = input().split()
list.reverse()
print(" ".join(list))

Submission status: Accepted

Solution code:
a = input()
b = input().split()
for i in b:
    i = int(i)
b.reverse()
c = " ".join(b)
print(c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
data = list(map(int,input().split()))
data.reverse()
for x in range(n):
    print(data[x],end='')
    if x!=n-1: print(' ',end='')
print()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(*a)

Submission status: Accepted

Solution code:
_, lis = input(), list(input().split())[::-1]
print(*lis)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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)
print(" ".join(map(str, list)))

Submission status: Accepted

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

Submission status: Accepted

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

print(' '.join(map(str, reversed(a))))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
_, *A = map(int, open(0).read().split())
A.reverse()
print(*A)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
a = input()
a_list = a.split(" ")
y = ""
for i in range(n):
    y += a_list[n - (i + 1)]
    if n - (i + 1) == 0:
        break
    y += " "
print(y)

Submission status: Accepted

Solution code:
n = int(input())
a = list(input().split())
a.reverse()
print(' '.join(a))

Submission status: Accepted

Solution code:
n = int(input())
s = list(map(int, input().strip().split(' ')))
t = n // 2

for i in range(0, n // 2):
    s[i], s[n - i - 1] = s[n - i - 1], s[i]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

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

Submission status: Accepted

Solution code:
input()
ls = input().split()
ls.reverse()
print(' '.join(ls))

Submission status: Accepted

Solution code:
n = int(input())
a = [int(i) for i in input().split()]
out = ' '.join([str(i) for i in list(reversed(a))])
print(out)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
inData = int(input())
inSeries = [int(i) for i in input().split()]
outData =[0]*inData

for i in range(inData):
    outData[i] = inSeries[inData-1-i]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

for idx, val in enumerate(i):
    if idx == N-1:
        print(val)
    else:
        print(val, ' ', sep = '', end='')

Submission status: Accepted

Solution code:
input()
ls = input().split()
print(' '.join(reversed(ls)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
first_line = input()
length = int(first_line)
second_line = input()
numbers_str = second_line.split()
result_list = numbers_str[::-1]
result = " ".join(result_list)
print(result)

Submission status: Accepted

Solution code:
count = int(input())
line = input().split()
line.reverse()
for i in range(count):
    print(line[i], end = "")
    if i != count-1:
        print(" ", end = "")
print()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

a.reverse()
for i,elem in enumerate(a):
    if i != 0:
        print (" ", end='')
    print (elem, end='')
print ('')

Submission status: Accepted

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

Submission status: Accepted

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

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

for tmp in output:
	if tmp == output[-1]:
		print(tmp)
	else:
		print(tmp, end=" ")

Submission status: Accepted

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

lengh = len(data)
for tmp in range(lengh):
	if tmp == lengh-1:
		print(data.pop(-1))
	else:
		print(data.pop(-1), end=" ")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

b = []
for i in range(n):
    b.append(a[n - 1 - i])

for i in range(n):
    if i < n - 1:
        print(b[i], end=' ')
    else:
        print(b[i])

Submission status: Accepted

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

b = []
for i in range(n):
    b.append(a[n - 1 - i])

for output in b[:n - 1]:
    print(output, end=' ')
print(b[n - 1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
l = list(map(int, input().split()))
l.reverse()
s = ''
for i in range(n):
    if i >= 1:
        print(' ', end='')
    print(l[i], end='')
print()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
l =list(map(int,input().split()))
l.reverse()
for i in range(n):
    if i != n-1:
        print(f"{l[i]} ",end="")
    else:
        print(f"{l[i]}")

Submission status: Accepted

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

print(" ".join(reversed(a)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = int(input())

line = input().split(" ")
line.reverse()
print(*line)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
_ = input()
x = list(map(int, input().split()))
y = [str(i) for i in reversed(x)]
print(' '.join(y))

Submission status: Accepted

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

print(*e[::-1])

Submission status: Accepted

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

if n == 1:
    print(num[0])
else:
    counter = 0
    for i in (reversed(num)):
        if counter == 0:
            print(i, end="")
        elif counter == n-1:
            print(" {}".format(i))
        else:
            print(" {}".format(i), end="")
        counter += 1

Submission status: Accepted

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

ns.reverse()

print(*ns)

Submission status: Accepted

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



print(*ns[::-1])

Submission status: Accepted

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

ns.reverse()

print(*ns)

Submission status: Accepted

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

ns.reverse()

print(*ns)

Submission status: Accepted

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

print(*ns[::-1])

Submission status: Accepted

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

ns.reverse()

print(*ns)

Submission status: Accepted

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


print(*ns[::-1])   # *はリストを引数に展開 print(ns[0], ns[1], ...)

Submission status: Accepted

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


print(*ns[::-1])

Submission status: Accepted

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

ns.reverse()


print(*ns)   # *はリストを引数に展開 print(ns[0], ns[1], ...)

Submission status: Accepted

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

Submission status: Accepted

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



print(*ns[::-1])   # *はリストを引数に展開 print(ns[0], ns[1], ...)

Submission status: Accepted

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

a.reverse()

print(*a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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



print(*ns[::-1])   # *はリストを引数に展開 print(ns[0], ns[1], ...)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
n=int(input())
a=[]
a=list(map(int,input().split()))
count=0
for i in reversed(a):
    print (i,end="")
    count+=1
    if count!=n:
        print(" ",end="")
    else :
        print("")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

stdin.readline()

a_n = list(stdin.readline().rstrip().split())
a_n.reverse()

print(" ".join(a_n))

Submission status: Accepted

Solution code:
n = int(input())

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

for i in range(n-1,-1,-1):
    arry = y[i]
    x.append(arry)

for i in range(n):
    if(i == n-1):
        print('{}'.format(x[i]))
    else:
        print(x[i],end=' ')

Submission status: Accepted

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

Submission status: Accepted

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

for i in reversed(numbers):
    print(i,end="")
    if i != numbers[0]:
        print(" ",end="")
print()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def az15():
    n = input()
    xs = map(int,raw_input().split())
    xs.reverse()
    for i in range(0,len(xs)):
        print xs[i],
az15()

Submission status: Accepted

Solution code:
from sys import stdin

n = int(stdin.readline())

a = [int(x) for x in stdin.readline().split(' ')]
b = a[:n]
b.reverse()

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

Submission status: Accepted

Solution code:
t = int(raw_input())
x = raw_input().split()
s = ''
for i in range(0,t):
    k = int(x[t - i - 1])
    if i == 0:
        s = str(k)
    else:
        s = s + ' ' + str(k)
        
print s

Submission status: Accepted

Solution code:
n = input()
a = map(int, raw_input().split())
s = ""
for i in range(-1, -n, -1):
    s += str(a[i]) + " "
s += str(a[-n])
print(s)

Submission status: Accepted

Solution code:
n = input()
a = list(map(lambda x : int(x), input().split(" ")))
for i, a_ in enumerate(reversed(a)):
    if i == 0:
        print("%d" % a_, end="")
    else:
        print(" %d" % a_, end="")
print()

Submission status: Accepted

Solution code:
n=raw_input()
ls=map(int,raw_input().split())
ls.reverse()
ans=''
for i in range(len(ls)-1):
    print ls[i],
print ls[len(ls)-1]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
raw_input()
a = raw_input().split(" ")
a.reverse()
print " ".join(a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input();print " ".join(raw_input().split()[::-1])

Submission status: Accepted

Solution code:
n = input()
list = raw_input().split(" ")

list.reverse()
print " ".join(list)

Submission status: Accepted

Solution code:
num = int(raw_input()) 
list_ = map(int, raw_input().split())
list_.reverse()
for x in list_:
	print x,

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()

data = input().split()
data.reverse()
print(' '.join(data))

Submission status: Accepted

Solution code:
input()
data = input().split()
data.reverse()
print(' '.join(data))

Submission status: Accepted

Solution code:
import sys

n = input()
a = map(int, raw_input().split())

for i in range(n):
    sys.stdout.write(str(a[n-i-1]))
    if(i != n-1):
        sys.stdout.write(" ")
print

Submission status: Accepted

Solution code:
n = int(input())
ns = [int(i) for i in input().split()]
ns.reverse()
if len(ns) > n:
  del ns[:(len(ns) - n)]
for i in ns:
  if i != ns[-1]:
    print(i,end=' ')
  else:
    print(i,end='')
print()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()

a = input().split()

a.reverse()
print(' '.join(a))

Submission status: Accepted

Solution code:
import sys
n = int(sys.stdin.readline())
l = sys.stdin.readline().split()
print(" ".join(l[::-1]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    n = int(input())
    print(' '.join([str(i) for i in input().split()][::-1]))

Submission status: Accepted

Solution code:
#coding:utf-8
#1_6_A 2015.4.1
n = int(input())
numbers = list(map(int,input().split()))

for i in range(n):
    if i == n - 1:
        print(numbers[-i-1])
    else:
        print(numbers[-i-1], end = ' ')

Submission status: Accepted

Solution code:
#coding:utf-8
#1_6_A 2015.4.1
input()
numbers = input().split()
numbers.reverse()
print(' '.join(numbers))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input();print" ".join(raw_input().split()[::-1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
data=input().split()
data.reverse()
print(' '.join(data))

Submission status: Accepted

Solution code:
import sys

n = int( sys.stdin.readline() )
nums = sys.stdin.readline().rstrip().split( " " )
nums.reverse()
output = []
for i in range( n ):
	output.append( nums[i] )
	if i < (n-1):
		output.append( " " )
print( "".join( output ) )

Submission status: Accepted

Solution code:
import sys

n = int( sys.stdin.readline() )
nums = sys.stdin.readline().rstrip().split( " " )
nums.reverse()
print( " ".join( nums ) )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:UTF-8

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

Submission status: Accepted

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

n = int(raw_input())

num = map(int, raw_input().split())

for e in num[::-1]:
	if e == num[0]:
		print e
		break
	print e,

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    n = int(raw_input())

    nums = map( int, raw_input().split())
    nlen = len( nums )
    nlast = n - 1
    i = nlast
    while i >= 0:
        if i == 0:
            print nums[i]
        else:
            print nums[i],
        i = i - 1

Submission status: Accepted

Solution code:
# coding=utf-8

n = int(raw_input())
nums = raw_input().split()
print ' '.join(reversed(nums))

Submission status: Accepted

Solution code:
n = input()
print(' '.join(reversed(input().split())))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = int(raw_input())

arr = map(int, raw_input().split())
arr.reverse()

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

Submission status: Accepted

Solution code:
input()
number = input().split()
number.reverse()
print(' '.join(number))

Submission status: Accepted

Solution code:
input()
data = input().split()
data.reverse()
print(" ".join(data))

Submission status: Accepted

Solution code:
input()
data = input().split()
data.reverse()
print( ' '.join( data))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
#1_6_A 2015.8.11
input()
print(*input().split()[::-1])
#print(' '.join(input().split()[::-1]))

Submission status: Accepted

Solution code:
#coding:utf-8
#1_6_A 2015.8.11
input()
print(*input().split()[::-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
 
n = int( sys.stdin.readline() )
nums = sys.stdin.readline().rstrip().split( " " )
nums.reverse()
output = []
for i in range( n ):
    output.append( nums[i] )
    if i < (n-1):
        output.append( " " )
print( "".join( output ) )

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
(lambda _, s: print(*reversed(s.split())))(input(), input())

Submission status: Accepted

Solution code:
input()
i = list(map(int, input().split()))
i.reverse()
for j in range(len(i)) :
    if j != 0 :
        print(' ', end = '')
    print(i[j], end = '')
print()

Submission status: Accepted

Solution code:
k = int(raw_input())
lis = raw_input().split()

for i in range(1, k):
    print str(lis[k-i]),

print lis[0]

Submission status: Accepted

Solution code:
n = input()

numbers = input().split(" ")

numbers.reverse()

numbers = " ".join(numbers)

print(numbers)

Submission status: Accepted

Solution code:
n = input()
l = map(int, raw_input().split())
k = 0
a = []
while n > 0:
    a.append(l[n - 1])
    n -= 1
print ' '.join(map(str, a))

Submission status: Accepted

Solution code:
n = input()
a = map(int, raw_input().split())
if len(a) == n:
    a.reverse()
    print ' '.join(map(str, a))

Submission status: Accepted

Solution code:
import sys
n = input()
a_n = map(int,raw_input().split())
j = -1
for i in range(n):
	if j == -1 :
			sys.stdout.write(str(a_n[j]))
			j -= 1
	else :		
		print (' '),
		sys.stdout.write(str(a_n[j]))
		j -= 1
print ''

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
a = raw_input().split(" ")
b = reversed(a)
print (" ".join(b))

Submission status: Accepted

Solution code:
n = int(raw_input())
a = []
input_line = raw_input().split()
for i in input_line:
    a.append(i)
for i in reversed(a):
    print i,