favorite We need a little bit of your help to keep things running, click on this banner to learn more

Even indexes

Even indexes

Given array of n integers. Print all its elements with even indexes. The numbering starts from 0.


First line contains number n. Next line contains n integers. All numbers do not exceed 100 by absolute value.

Выходные данные

Print all array elements with even indexes.

Time limit 1 second
Memory limit 128 MiB
Input example #1
14 16 3 7 17 19 9
Output example #1
14 3 17 9
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"