#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

Sample Input 1

[3 2 4 5 8] 2

Sample Output 1

[2, 4]

Sample Input 2

[3 2 4 5 8] 3

Sample Output 2

[2, 4, 8]

Sample Input 3

[6 1 2 4 5 8] 3

Sample Output 3

[6, 2, 4]

Limitation

1s, 1024KiB for each test case.