#CCBCHBAHAI0000044. Loại các phần tử ở chỉ số chẵn (Remove Elements at Even Indices)

Loại các phần tử ở chỉ số chẵn (Remove Elements at Even Indices)

Loại các phần tử ở chỉ số chẵn (Remove Elements at Even Indices)

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem

Given an integer array a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1} using 0-based indexing.

Remove every element whose original index is even, i.e. every aia_i satisfying

i≡0(mod2).i\equiv0\pmod2.

Elements at original odd indices keep their relative order. Thus the result is

a1,a3,a5,…a_1,a_3,a_5,\ldots

up to the last valid index below nn.

Print the new size and the resulting array.

Input

The first line contains integer nn. The second line contains exactly nn integers a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1}.

Output

Print the new size m=⌊n/2floorm=\lfloor n/2 floor on the first line. If m>0m>0, print the elements from original odd indices on the second line.

Subtask

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

Example

Input

7
10 20 30 40 50 60 70

Output

3
20 40 60

Explanation

The original odd indices are 1,3,51,3,5, containing 20,40,6020,40,60. Indices are interpreted in the original array, not recomputed after each deletion.