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

for n, i in enumerate(reversed(l)):
    if n > 0:
        print('', end=' ')
    
    print(i, end='')

print('\r')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y = int(input())
x = input()
list = x.split()
list.reverse()

k = " "


b = list[0]


if y >= 2:
    a = list[0]
    b = a + k

    for i in range(y - 2):
        c = list[i + 1]
        b = b + c + k

    a = list[-1]
    b = b + a

print(b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

A = list(map(int, input().split()))
A.reverse()
print(" ".join(map(str, A)))

Submission status: Accepted

Solution code:
#! python3
# reverse.py - 配列を逆順に出力するプログラム

num = int(input())
numbers = input().split()
reversed_numbers = []
for n in numbers[::-1]:
  reversed_numbers.append(n)

print(' '.join(reversed_numbers))

Submission status: Accepted

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

n.reverse()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
# ITP1_6_A
# 数列の反転

input()
lst = list(input().split())
lst.reverse()
print(" ".join(lst))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = input()

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

table.reverse()

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

Submission status: Accepted

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

a.reverse()

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

Submission status: Accepted

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

result = ''
for i in values :
    result += (str(i) + ' ')
else :
    result = result[:-1]
print(result)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

data = input().split()

reverse = []

for i in range(n):
  reverse.append(int(data[n-1-i]))

print(*reverse)

Submission status: Accepted

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

a.reverse()

print (*a)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# pythonリストの逆順
# 組み込み関数reversed()を使う。

n = int(input())
numbers = list(map(int, input().split()))

# print("{}".format(numbers))
for i, number in enumerate(reversed(numbers)):
    if i == n - 1:
        print("{}".format(number))
    else:
        print(number, end=" ")

Submission status: Accepted

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

a.reverse()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

for x in range(0,n)[::-1]:
	print(str(l[x]), end="")
	if x+1:


		print(" ",end ="")
print()
'''

N = int(input())
table = list(map(int,input().split()))

table.reverse()

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

Submission status: Accepted

Solution code:
i = int(input())
n = list(map(int,input().split()))
while i > 1:
    print(n[i-1],end=" ")
    i -= 1
print(n[0])

Submission status: Accepted

Solution code:
n =int(input())
table = input().split()
arr = []
for num in range(n):
    arr.append(table[n -num-1])
    print(arr[num],end = '')
    if num == n-1:
       print('')
    else:
       print(' ',end='')

Submission status: Accepted

Solution code:
n = input()
n = int(n)
string = input()
numbers = string.split(' ')
numbers.reverse()
for _ in range(n):
    print(numbers[_], end='')
    if _ != n - 1:
        print(' ', end='')
print()

Submission status: Accepted

Solution code:
input()
a = []
a += map(int, input().split())
print(' '.join(map(str, reversed(a))))

Submission status: Accepted

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

Submission status: Accepted

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

num_list = reversed(num_list)

answer = ' '.join(num_list)

print(answer)

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

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

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:
def main():
    n = int(input())
    a = list(input().split())
    ans = []
    for _ in range(n):
        ans.append(a.pop(-1))
    print(' '.join(ans))


main()

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:
# coding: utf-8
n = int(input())
ai = input().split()
ai.reverse()
for i, a in enumerate(ai):
    if (i != n -1):
        print(a, end=" ")
    else:
        print(a)

Submission status: Accepted

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

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:
n = int(input())
a = [int(i) for i in input().split()]
a.reverse()
print(" ".join(map(str,a)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

ans = ""
flag = False
for x in list:
    if flag:
        ans += " "
    else:
        flag = True
    ans += str(x)
print(ans)

Submission status: Accepted

Solution code:
_, *lines = map(int, open(0).read().rsplit())
for number, i in enumerate(reversed(lines)):
    if number == len(lines) - 1:
        print(i)
    else:
        print(i, end=" ")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

num = [str(x) for x in input().split()]
num.reverse()
print (" ".join(num))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
ans = ""
L = list(map(str,input().split()))
L = list(reversed(L))
for i in range(len(L)) :
    ans += L[i]
    if i != len(L)-1 :
        ans += " "
print(ans)

Submission status: Accepted

Solution code:
a = int(input())
list1 = input().split()
list2 = []

for i in range(1,a+1):
    list2.append(list1[-i])

print(" ".join(list2))

Submission status: Accepted

Solution code:
# coding: utf-8
# coding: Shift_JIS
# coding: EUC-JP
# coding: cp932
import math

n = int(input())
a = input().split()
str = ""
while(n>0):
    n = n-1
    if(n >= 1):
        str = str + a[n] + " "
    else:
        str = str + a[n]

print(str)

Submission status: Accepted

Solution code:
N=int(input())
x=input()
x=x.split()
y=[]
num=0
for i in range(N):
    num-=1
    y.append(x[num])
message=' '.join(y)
print(message)

Submission status: Accepted

Solution code:
import sys

print(' '.join(map(str, reversed(list(map(int, sys.stdin.readlines()[1].strip().split()))))))

Submission status: Accepted

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

print(*lst[::-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = int(input())
list1 = [i for i in (map(int, input().split()))]
while num != 0:
    new_l = list()
    for _ in range(num):
        new_l.append(list1.pop())
    stri = " ".join(map(str,new_l))
    print(stri)
    break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
count =sys.stdin.readline()
x=sys.stdin.readline().split()
print(' '.join(x[::-1]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for i in l:
    r.insert(0, i)

print(*r)

Submission status: Accepted

Solution code:
def main():
	n = int(input())
	array = []
	string =''
	for x in input().split():
		array.append(x)
	array.reverse()
	for x  in array:
		string = string + x + ' '
	print(string[0:-1])

main()

Submission status: Accepted

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

n=n-1

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

print(a[0])

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:
num = input()
lst = input()
reverselst = list(lst.split())
reverselst.reverse()
print (" ".join(reverselst))

Submission status: Accepted

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

l.reverse()
for i in l:
    print(i,end="")
    if ( n != 1 ):
        print (" ",end="")
    n = n -1
print ("")

Submission status: Accepted

Solution code:
n = int(input())
lst = list(map(int, input().split()))
counter = 0
for i in (reversed(lst)):
    counter += 1
    print (i, end="")
    if counter != n:
        print ("", end=" ")
print ("")

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.reverse()   #リストの要素の順序を入れ替える
print(' '.join(map(str,a)))
#join : 文字列リストの連結
#map : strに変換

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(str(l[i]))
    else:
        print(str(l[i]) + " ", end="")

Submission status: Accepted

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

Submission status: Accepted

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

rev = []
for i in a[::-1]:
    rev.append(i)

print(" ".join(rev))

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())
numbers = list(map(int, input().split()))
numbers.reverse()
print(*numbers,sep=' ')

Submission status: Accepted

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

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())
l =list(map(int,input().split()))
l.reverse()
print(' '.join(map(str,l)))

Submission status: Accepted

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

str = ''
for i in range(n):
    str += a[n-i-1]
    if i != n - 1:
        str += ' '
print(str)

Submission status: Accepted

Solution code:
n = int(input())

line = list(map(str,input().split()))

re_line = []

for i in range(n):
        re_line.append(line[n-i-1])

print(" ".join(re_line))

Submission status: Accepted

Solution code:
n=int(input())
X=input().split()
i=0
for value in reversed(X):
    if(i==n-1):
        break
    print(value,end=" ")
    i+=1
print(X[0])

Submission status: Accepted

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

Submission status: Accepted

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

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:
input()
print(' '.join(list(reversed([i for i in input().split()]))))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
ary = []

ary = list(input().split())

ary.reverse()

print(' '.join(ary))

Submission status: Accepted

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

Submission status: Accepted

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

l_index = 0
r_index = n - 1


while (l_index < r_index):
    temp = _input[l_index]
    _input[l_index] = _input[r_index]
    _input[r_index] = temp
    l_index += 1
    r_index -= 1

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

Submission status: Accepted

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

# ITP1_6_A
num=input()
N=input().split()
result=" ".join(N[::-1])
print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
array = input().split(' ')
reverse = []
for i in range(n):
    reverse.append(array[n - 1 - i])
print(' '.join(reverse))

Submission status: Accepted

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

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 =[str(i) for i in input().split()]
print(' '.join(A[::-1]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()

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

a.reverse()

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

Submission status: Accepted

Solution code:
n = int(input())
num = input().split()
renum = ''
for i in num:
    n -= 1
    renum += num[n]
    if int(n) != 0:
        renum += ' '
print(renum)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():

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

if __name__ == "__main__":

	main()

Submission status: Accepted

Solution code:
num = int(input())
sum = 0
data = []
data = input().split()
for x in range(0,num):
    data[x] = int(data[x])
data.reverse()
for x in range(0,num-1):
    print(data[x],end=' ')
print(data[num-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# coding : utf-8
n = int(input())
lst = map(int, input().split())
for i in range(n-1, -1, -1):
    print ('%d ' % lst[i], end = '')
print ('')

Submission status: Runtime Error

Solution code:
A=int(input())
s=input().split()
i=[int(q) for q in s]
list=[]
i.reverse()
for b in range(A):
    list.append(b)
print(for h in list)

Submission status: Runtime Error

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 list:
    a=i,end=" "
print(a[:-2])

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

for i in range(0, t):
    s[i], s[n - i] = s[n - i], s[i]

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;
int main(void){
    
    int i,n;
    int x[101];
    
    cin >> n;
    
    for(i=0; i<n; i++){
        cin >> x[i];
    }
    
    for(i=n-1; i>=0; i--){
        if (i==0){
            cout << x[i] << endl;
        }
        else{
            cout << x[i] << " ";
        }
    }
    
    cout << endl;
    
    return 0;
}

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;
int main(void){
    int n,i,j;
    
    cin >> n;
    int a[n];
    
    for(i=0;i<n;i++){
        cin >> a[i];
    }
    

    
    for(j=n-1;j>=0;j--){
        if(j==0)
            cout << a[j];
        else
            cout << a[j] << " ";
    }
    
}

Submission status: Runtime Error

Solution code:
#include <iostream>
using namespace std;
int main(void){
    int n,i,j;
    
    cin >> n;
    int a[n];
    
    for(i=0;i<n;i++){
        cin >> a[i];
    }
    

    
    for(j=n-1;j>=0;j--){
        if(j==0)
            cout << a[j] << endl;
        else
            cout << a[j] << " ";
    }
    
}

Submission status: Runtime Error

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: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
i = 0
while True:
  if i == n:
    break
  a[i] = input().split
  a[i] = a[n-i]
  print(a[i])

Submission status: Runtime Error

Solution code:
n = input()
int i
while True:
  if i == n:
    break
  a[i] = input().split
  a[i] = a[n-i]
  print(a[i])

Submission status: Runtime Error

Solution code:
input()

data = input.split()

data.reverse()
[print(x, end=' ') for x in data]
print()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():
    numbers = map(input().split())
    ans = list(reversed(numbers))
    print(ans)



if __name__=="__main__":
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
(n, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
    A. append([int(j) for j in input().split() ])

for i in ronge(m):
    b.append(int(input()))


for i in range(n):
m = 0
for j in range(m):
    s += A[j][j] * b[j]
   print(s)

Submission status: Runtime Error

Solution code:
input()
i = list(map(int, input().split()))
i.reverse()
for j in range(len(i) - 1) :
    print('{} '.format(i[j]), end = '')
print('{}'.format(i[j + 1]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in range(len(x), 1):
  print "%d " %(x[i])
print "%d" %(x[0])

Submission status: Runtime Error

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

for i in reversed(len(x), 1):
  print x[i],

Submission status: Runtime Error

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

for i in reversed(len(x), 1):
  print x[i],

Submission status: Runtime Error

Solution code:
n=raw_input()
x=raw_input().split()

for i in reversed(len(x), 1):
  print x[i],

Submission status: Runtime Error

Solution code:
n=raw_input()
x=raw_input().split()

for i in reversed(len(x)):
  print x[i],

Submission status: Runtime Error

Solution code:
n=raw_input()
x=raw_input().split()

for i in reversed(xrange((len(x))):
  print x[i],

Submission status: Runtime Error

Solution code:
n=raw_input()
x=raw_input().split()

for i in reversed(xrange(len(x)):
  print x[i],

Submission status: Runtime Error

Solution code:
n=raw_input()
x=raw_input().split()

x(reversed(range(10)))

Submission status: Runtime Error

Solution code:
x=raw_input().split()

x(reversed(range(10)))

Submission status: Runtime Error

Solution code:
x=raw_input().split()

x(reversed(range(len(x))))

Submission status: Runtime Error

Solution code:
x=raw_input().split()

x(reversed(xrange(len(x))))

Submission status: Runtime Error

Solution code:
x=raw_input().split()

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

Submission status: Runtime Error

Solution code:
x=raw_input().split()

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

Submission status: Runtime Error

Solution code:
x=raw_input().split()

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

Submission status: Runtime Error

Solution code:
x=raw_input().split()

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

Submission status: Runtime Error

Solution code:
x=raw_input().split()

for i in reversed(range(len(x)):
print x[i]

Submission status: Runtime Error

Solution code:
x=map(raw_input().split())

for i in reversed(range(len(x)):
print x[i]

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
n = raw_input()

for i in range(0, n):
   a = input()
   A(n-i) = a

for j in range(0, n):
   print A(j),

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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