Problem Description

One line has n and then n integers. Store them into variables: first, middle (all), last. Output first, count of middle elements, last.

Input Format

One line: n a1 a2 ... an.

Output Format

One line: first midCount last.

Sample Test Case

Input:
5 10 20 30 40 50
Output:
10 3 50

Constraints

3

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next