#CCBCHBAHAI0000024. Arrays - DS

Arrays - DS

Arrays - DS

Source: HackerRank

Version: Phuoc Hung OJ Extended

Problem

Given an integer array of length nn,

a1,a2,…,an,a_1,a_2,\ldots,a_n,

construct its reverse. If the reversed array is b1,b2,…,bnb_1,b_2,\ldots,b_n, then

bi=an−i+1(1≤i≤n).b_i=a_{n-i+1}\qquad(1\le i\le n).

Print the reversed array.

Input

The first line contains integer nn. The second line contains nn space-separated integers a1,a2,…,ana_1,a_2,\ldots,a_n.

Output

Print the nn elements of the reversed array on one line, separated by single spaces.

Subtasks

Subtask 1 (100 points): 1≤n≤2⋅1051\le n\le 2\cdot 10^5; ∣ai∣≤109|a_i|\le 10^9.

Example

Input

4
1 4 3 2

Output

2 3 4 1

Explanation

Using bi=an−i+1b_i=a_{n-i+1}, reversing [1,4,3,2][1,4,3,2] gives [2,3,4,1][2,3,4,1].