LearnPy Hub
← NumPy problems
Easy

First and Last Element

Read integers into an array and print a[0] and a[-1] on one line.

Input

Integers separated by spaces.

Output

One line.

Sample 1

Input
1 2 3
Output
1 3

Sample 2

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