#188. copyEvens

copyEvens

Background

Description

Given an array of positive ints, return a new array of length "count" containing the first even numbers from the original array. The original array will contain at least "count" even numbers.

Format

Input

Output

Samples

[3 2 4 5 8] 2
[2, 4]
[3 2 4 5 8] 3
[2, 4, 8]
[6 1 2 4 5 8] 3
[6, 2, 4]

Limitation

1s, 1024KiB for each test case.