#CCBCHBAHAI0000004. In các phần tử ở chỉ số lẻ (Print Elements at Odd Indices)
In các phần tử ở chỉ số lẻ (Print Elements at Odd Indices)
Print Elements at Odd Indices
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
You are given an integer array of length , indexed from to . Print the elements whose indices are odd, that is, all with , in increasing index order.
Input
- The first line contains the integer , the number of array elements.
- The second line contains exactly integers in increasing index order.
Output
Print that exist in the array on one line, separated by spaces.
Subtasks
Subtask 1 (20 points): , .
Subtask 2 (30 points): , for every .
Subtask 3 (50 points): , for every .
Examples
Input
6
10 20 30 40 50 60
Output
20 40 60
Explanation
The odd indices from through are . Their values are , so the output is 20 40 60.