Young Timofey has a birthday today! He got kit of *n* cubes as a birthday present from his parents. Every cube has a number *a*<sub class="lower-index">*i*</sub>, which is written on it. Timofey put all the cubes in a row and went to unpack other presents.

In this time, Timofey's elder brother, Dima reordered the cubes using the following rule. Suppose the cubes are numbered from 1 to *n* in their order. Dima performs several steps, on step *i* he reverses the segment of cubes from *i*-th to (*n* - *i* + 1)-th. He does this while *i* ≤ *n* - *i* + 1.

After performing the operations Dima went away, being very proud of himself. When Timofey returned to his cubes, he understood that their order was changed. Help Timofey as fast as you can and save the holiday — restore the initial order of the cubes using information of their current location.
The first line contains single integer *n* (1 ≤ *n* ≤ 2·10<sup class="upper-index">5</sup>) — the number of cubes.

The second line contains *n* integers *a*<sub class="lower-index">1</sub>, *a*<sub class="lower-index">2</sub>, ..., *a*<sub class="lower-index">*n*</sub> ( - 10<sup class="upper-index">9</sup> ≤ *a*<sub class="lower-index">*i*</sub> ≤ 10<sup class="upper-index">9</sup>), where *a*<sub class="lower-index">*i*</sub> is the number written on the *i*-th cube after Dima has changed their order.
Consider the first sample.
 1.  At the begining row was [2, 3, 9, 6, 7, 1, 4]. 1.  After first operation row was [4, 1, 7, 6, 9, 3, 2]. 1.  After second operation row was [4, 3, 9, 6, 7, 1, 2]. 1.  After third operation row was [4, 3, 7, 6, 9, 1, 2]. 1.  At fourth operation we reverse just middle element, so nothing has changed. The final row is [4, 3, 7, 6, 9, 1, 2]. So the answer for this case is row [2, 3, 9, 6, 7, 1, 4].
7
4 3 7 6 9 1 2
2 3 9 6 7 1 4
8
6 1 4 2 5 6 9 2
2 1 6 2 5 4 9 6
1
1424
1424
9
-7 9 -4 9 -6 11 15 2 -10
-10 9 15 9 -6 11 -4 2 -7
2
21968 5686
5686 21968
5
241218936 -825949895 -84926813 491336344 -872198236
-872198236 -825949895 -84926813 491336344 241218936
42
-557774624 828320986 -345782722 -62979938 -681259411 -945983652 -139095040 832293378 -82572118 432027535 88438103 568183540 961782904 73543295 615958219 -5050584 322982437 -146046730 759453379 129267920 -819827396 -348156048 805080102 390723009 -771277251 -79011872 -592313207 528489973 656201270 -127795621 17284747 145139617 -565641608 83452176 -223074608 545811186 -657981923 -204657836 154779765 -476867246 180386291 202782486
202782486 828320986 -476867246 -62979938 -204657836 -945983652 545811186 832293378 83452176 432027535 145139617 568183540 -127795621 73543295 528489973 -5050584 -79011872 -146046730 390723009 129267920 -348156048 -819827396 805080102 759453379 -771277251 322982437 -592313207 615958219 656201270 961782904 17284747 88438103 -565641608 -82572118 -223074608 -139095040 -657981923 -681259411 154779765 -345782722 180386291 -557774624
2
1 2
2 1
6
1 2 3 4 5 6
6 2 4 3 5 1
4
0 1 2 3
3 1 2 0
10
1 2 3 4 5 6 7 8 9 10
10 2 8 4 6 5 7 3 9 1
2
4 5
5 4
2
1 5
5 1
2
2 5
5 2
2
3 4
4 3
2
10 0
0 10
66
8229 5299 5562 1259 2258 1126 5026 8796 3497 7111 6680 1180 1426 4821 3322 3502 400 2951 4187 417 5234 1266 7525 7648 417 9297 174 670 1790 4121 9737 938 4616 3402 2009 2461 474 3728 327 3353 9773 6818 8781 874 2209 1260 1647 6126 9287 9638 5049 1256 4459 863 1835 4822 6809 348 5053 7784 6927 2140 9173 7817 5095 4184
4184 5299 7817 1259 2140 1126 7784 8796 348 7111 4822 1180 863 4821 1256 3502 9638 2951 6126 417 1260 1266 874 7648 6818 9297 3353 670 3728 4121 2461 938 3402 4616 2009 9737 474 1790 327 174 9773 417 8781 7525 2209 5234 1647 4187 9287 400 5049 3322 4459 1426 1835 6680 6809 3497 5053 5026 6927 2258 9173 5562 5095 8229
n = int(input())
a = list(map(str, input().split()))
x = n // 2
for i in range(0, x, 2):    a[i], a[n - 1 - i] = a[n - 1 - i], a[i]
print(' '.join(a))