#34. front11

front11

Background

Description

Given 2 int arrays, a and b, of any length, return a new array with the first element of each array. If either array is length 0, ignore that array.

Format

Input

Output

Samples

[1 2 3] [7 9 8]
[1, 7]
[1] [2]
[1, 2]
[1 7] []
[1]

Limitation

1s, 1024KiB for each test case.