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: Accepted

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

Submission status: Accepted

Solution code:
# first line > /dev/null
input()

a = input().split(' ')
print(' '.join(reversed(a)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

for i in range(2):
	x = map(int, raw_input().split())
x.reverse()
for c in x[0:-1]:
	print c,
print x[-1]

Submission status: Accepted

Solution code:
# coding:utf-8


# ??\???
n = int(input())
numbers = input().split()

numbers.reverse()

print(' '.join(numbers))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()
print(' '.join(reversed([x for x in input().split()])))

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

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

for i in xrange(n - 1):
    tmp = str(a[len(a) - i - 1]) + ' '
    sys.stdout.write(tmp)
    
print "%d" % a[0]

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(1, n):
    print(str(a[-i]) + " ", end = "")
print(a[0])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = int(input())
s = input().split()

s.reverse()
print(' '.join(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

i = n-1
while i != -1:
    print "%d" %x[i] ,
    i = i-1

Submission status: Accepted

Solution code:
import sys
n = input()
a = map(int, raw_input().split())
for i in range(n):
  sys.stdout.write('%d' % a[n-i-1])
  if i != n-1:
    sys.stdout.write(' ')
sys.stdout.write('\n')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

for i in reversed(a):
    print i,

Submission status: Accepted

Solution code:
input()
D = [x for x in input().split()]
D.reverse()
str = ' '.join(D)
print(str)

Submission status: Accepted

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

Submission status: Accepted

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]

for i in xrange(n):
    print m2[i],

Submission status: Accepted

Solution code:
import sys
 
for i in range(2):
    x = map(int, raw_input().split())
x.reverse()
for c in x[0:-1]:
    print c,
print x[-1]

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sute = map(int,raw_input().split()) 
num = map(int,raw_input().split())
for i in range(len(num) - 1):
    print "%d" % num[len(num) - i - 1],
print num[0]

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: UTF-8

i = raw_input().split()
l = raw_input().split()

#l = [1, 2, 65, 3, 5,8]

l. reverse()

l_int = map (int, l)

print " ".join(l)

#a = [1,2,3,4,5]
#a_str = map(str,a)
#print ",".join(a_str)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N = int(raw_input())
n = map(int, raw_input().split())
for f in reversed(n):
	print f,

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(n):
    print x_list[n - i - 1],

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
class ReversingNumbers:
    def output(self, a):
        s = ""
        a.reverse()
        for i in range(len(a)-1):
            s += "%d " % (a[i])
        s += "%d" % (a[len(a)-1])
        print s

if __name__ == "__main__":
    rn = ReversingNumbers()
    raw_input()
    a = map(int, raw_input().split())
    rn.output(a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

for i in reversed(range(1, n)):
	sys.stdout.write(str(ai[i])+" ")
print ai[0]

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
n = input()
a = [int(s) for s in input().split()]
a.reverse()
print(' '.join(map(str,a)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math

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

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

Submission status: Accepted

Solution code:
n = input()
a = map(int, raw_input(). split())
while n != 0:
  print(a[n-1]),
  n-=1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
n = input().split()
line = '{0}'.format(n[-1])
for i in range(1,N):
    line += ' {0}'.format(n[N-i-1])
print(line)

Submission status: Accepted

Solution code:
input()
num =  [i for i in input().split()]
print(' '.join(num[::-1]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
a=list(map(int,input().split()))
a.reverse()
string=""
count=0
for i in a:
    count+=1
    string+=str(i)
    if (count!=n):
        string+=" "

print(string)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()
numbers = input().split()
#print(numbers)
r_numbers = reversed(numbers)
#print(r_numbers)
print(" ".join(r_numbers))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
l = input().split()
ans = ""
for i in range(len(l)-1,-1,-1):
    if i == 0:
        ans += l[i]
    else :
        ans += l[i] + " "
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
list = [i for i in input().split()]
list.reverse()
print(" ".join(list))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()

numbers = input().split()

numbers.reverse()
print(" ".join(numbers))

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:
n = int(input())
a = input().split()
a.reverse()
print(' '.join(a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
x = input()
y = x.split(' ')
c =[]
for i in range(a):
    c.append(y[(a-1)-i])
b = ' '.join(c)
print(b)

Submission status: Accepted

Solution code:
input()
a = [int(x) for x in input().split()]
print(*reversed(a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a.reverse()

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

Submission status: Accepted

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

Submission status: Accepted

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

a.reverse()

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

Submission status: Accepted

Solution code:
import sys

sys.stdin.readline()        # ?????????
data = sys.stdin.readline().strip().split(' ')
data.reverse()
print(' '.join(data))

Submission status: Accepted

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

for i in range(n):
    if i == n-1:
        print num[n-i-1]
        break

    print num[n-i-1],

Submission status: Accepted

Solution code:
a = []
for i in range(0,2):
    l = list(map(int,input().split()))
    a.append(l)
d = a[1][::-1]
print(' '.join(map(str,d)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

strA = ''
for ra in reversed(a):
  strA += '{0} '.format(ra)
print(strA[:-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: UTF-8
import math

def RN(n,a):
    ans=""
    for i in range(int(n)):
        ans+=a[int(n)-1-i]+" "
    print(ans[:-1])

if __name__=="__main__":
    n=input()
    a=input()
    List=a.split(" ")
    RN(n,List)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

for i in reversed(a):
    print i,

Submission status: Accepted

Solution code:
input()
print(*reversed([int(e) for e in input().split()]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
x = input().split()
x_int = [int(i) for i in x]
y = list(range(n))

for i in range(n):
     y[-i-1] = x_int[i]
y_str = [str(i) for i in y]
print(' '.join(y_str))

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())
num_li = input().split()
print(' '.join(list(reversed(num_li))))

Submission status: Accepted

Solution code:
#coding:utf-8
n=int(input())
x=list(map(int,input().split()))

for i,a in enumerate(x[::-1]):
    if i==n-1:
        print(str(a))
    else:
        print(str(a)+" ",end="")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
	input()
	lis = [ i for i in input().split() ]
	lis.reverse()
	print(' '.join(lis))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
x = [int (z) for z in input().split(' ')]
tn = n - 1
for c in range(0,n):
    print("%d" % x[tn], end='')
    if c != n-1:
        print(' ', end='')
    tn -= 1
print('')

Submission status: Accepted

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

Submission status: Accepted

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

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:
unused = input()
values = [x for x in input().split()]
print(' '.join(values[::-1]))

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    data_num = int(input())
    data = [x for x in input().split(' ')]
    assert data_num == len(data), "invalid input"

    data.reverse()
    output = ' '.join(data)

    print(output)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()
print(*input().split()[::-1],sep=' ')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

sys.stdin.readline()
data = sys.stdin.readline().strip().split(' ')
data.reverse()
print(' '.join(data))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
n = int(input())
s = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
'import sys'
input()
a=[int(i) for i in input().split()]
a.reverse()
f=0
for i in range(len(a)):
    if f: print(" ",end="")
    print("{}".format(a[i]),end="")
    f=1
print("")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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)
inputData.reverse()

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

Submission status: Accepted

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

n = int(input())
import sys
a = input()
a = a.split()
a = [int(i) for i in a]
a.reverse()

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

Submission status: Accepted

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

for i in range(n - 1):
    print(lis[n - i - 1], end=" ")
print(lis[0])

Submission status: Accepted

Solution code:
n = int(input())

numbers = []
numbers = input().split()
numbers.reverse()

print(' '.join(numbers))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

lines = [line for line in sys.stdin]

n = int(lines[0])
s = list(map(int,lines[1].split()))
s.reverse()
s=map(str,s)
print(" ".join(s))

Submission status: Accepted

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

a.reverse()

print(a[0], end = "")
for i in a[1:]:
	print(" ", end = "")
	print(i, end = "")

print("")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!usr/bin/env python3

import sys


def reverse_list():
    lst = [int(i) for i in sys.stdin.readline().split()]
    lst.reverse()
    return lst


def main():
    n = sys.stdin.readline()
    print(*reverse_list())


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

b = []
j = N-1

while j > 0:
	print("{} ".format(a[j]),end = "")
	j -= 1
print(a[j])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def reverse(l):
    """
    l: a list
    returns a reversed list

    >>> reverse([1,2,3,4,5])
    [5, 4, 3, 2, 1]
    >>> reverse([3,3,4,4,5,8,7,9])
    [9, 7, 8, 5, 4, 4, 3, 3]
    >>> reverse([])
    []
    """
    length = len(l)
    result = []
    for i in range(length):
        result.append(l[length-i-1])

    return result

if __name__ == '__main__':
    #import doctest
    #doctest.testmod()

    num = int(input())
    ilist = [int(i) for i in input().split(' ')]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()
nums = [x for x in input().split(" ")]
print(" ".join(nums[::-1]))

Submission status: Accepted

Solution code:
n = int(input())
i = 0
list_n = [n]

map_n = map(int, input().split())
list_n = list(map_n)

for value in reversed(list_n):
	print(value, end ='')
	if value != list_n[0]:
		print(' ', end = '')
print()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int, input().split()))
a = a[::-1]
for cnt, item in enumerate(a, 1):
    if cnt == n:
        print(item)
    else:
        print(item,end=' ')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
number_list=[]
for i in range(2):
    a=input().split()
    number_list.append(a)
for n in range(int(number_list[0][0])):
    if n!=int(number_list[0][0])-1:
        print('{0} '.format(number_list[1][int(number_list[0][0])-1-n]), end='')
    else:
        print('{0}'.format(number_list[1][int(number_list[0][0])-1-n]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys
import os


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

Submission status: Accepted

Solution code:
# cording utf-8

num = int(input())
list = input().rstrip().split(" ")

num = num - 1
result = str(list[num])

for i in range(num):
    result = result + " " + str(list[num-1-i])

print(result)

Submission status: Accepted

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

l.reverse()
print(' '.join(l))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

print(str(a[0]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

def func():
    try:
        line = input()
        line = input().rstrip()
        numbers = line.split(" ")
    except:
        print("input error")
        return -1
        
    numbers.reverse()
    result=""
    for item in numbers:
        result += item+" "
    
    print(result.rstrip(" "))

func()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
text = input()

dataset = text.split()
reverse = []

for x in range(n):
    reverse.append(dataset[n-x-1])

print(' '.join(reverse))

Submission status: Accepted

Solution code:
count = int(input())
array = [int(i) for i in input().split(" ")]

for n in range( count - 1, 0, -1):
    print(array[n], end = " ")
print(array[0])

Submission status: Accepted

Solution code:
n = input()

a = raw_input().split()
a.reverse()
print(' '.join(a))

Submission status: Accepted

Solution code:
n = int(input())
array = input().split()
reversed_array = []
for i in range(n):
    x = array.pop()
    reversed_array.append(x)
print(" ".join(reversed_array))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*
input()
a = reversed(input().split())
print(" ".join(a))

Submission status: Accepted

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

Submission status: Accepted

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

rnums = []
for i in range(n):
    rnums.append(nums[-1*i -1])

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

Submission status: Accepted

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

LA = L[::-1]
LA = LA[:-1]
LB = L[0]
for i in LA:
 print(i + " ", end="")
print(LB)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
l = (input().split())
out=""
for i in reversed(l): out+=i+" "
print(out.strip())

Submission status: Accepted

Solution code:
N = int(input())
h = int(N / 2)
a = input().split()
for i in range(h):
    t = a[i]
    a[i] = a[N-1-i]
    a[N-1-i] = t
print(" ".join(a))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

n = int(input().rstrip())

a = input().rstrip().split(" ")

a.reverse()

print(" ".join(a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
length = int(input())
ary = input().split()
print(' '.join(ary[-1::-1]))

Submission status: Accepted

Solution code:
n = int(input())
a = list(input().split())
half = int(n / 2)
for i in range(0, half):
    t = a[i]
    a[i] = a[n - i - 1]
    a[n - i - 1] = t

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

Submission status: Accepted

Solution code:
#!/usr/bin/python

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

for (i, item) in enumerate(a):
  print(str(item), end = ' ' if i != len(a)-1 else '\n')

Submission status: Accepted

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