Odd Array Traversal


Description

You are given an array of size N. Print the odd traversal of array of size N. Odd traversal means print only the values stored at odd indexes.

Note : Consider the indexing in the array starts from 0. The values must be printed in the order in which they arrive in the array.

Input

The first line of the input contains N, the size of the array. The next line contains N space separated integers, denoting the elements in the array.

Constraints

1 <= N <= 100

1 <= A[i] <= 10

Output

Print the odd traversal of the array on a single line.

Sample Input 1 

5
1 2 3 4 5

Sample Output 1

2 4

Hint

In the sample test case, the values stored at odd indexes 1 and 3 are 2 and 4. Therefore, the output is 2 4

Comments

Popular posts from this blog

Multer file upload and delete - Nodejs, Mongodb, Express

Money Management

Sub array quest IX