LearnPy Hub
← Lists problems
Easy

First and Last

Read a list of integers and print the first element, the last element (using index -1) and the length.

Input

One line of integers.

Output

Three lines.

Sample 1

Input
4 8 15 16 23 42
Output
4
42
6

Sample 2

Input
7
Output
7
7
1
solution.py
Output appears here
First and Last · Python practice problem · LearnPy Hub