LearnPy Hub
← Lists problems
Easy

Minimum Element

Read a list of integers and print the smallest one and its position (index starting at 0). If it appears more than once, use the first position.

Input

One line of integers.

Output

Two numbers on one line.

Sample 1

Input
4 2 7 2
Output
2 1

Sample 2

Input
9
Output
9 0
solution.py
Output appears here
Minimum Element · Python practice problem · LearnPy Hub