#15. sum2

sum2

Background

Description

Given an array of ints, return the sum of the first 2 elements in the array. If the array length is less than 2, just sum up the elements that exist, returning 0 if the array is length 0.

Format

Input

Output

Samples

[1 2 3]
3
[1 1]
2
[1 1 1 1]
2

Limitation

1s, 1024KiB for each test case.