Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/minmax/position-of-the-smallest-element

Position of the smallest element

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 256 MB 22%
Share

A positive integer and a sequence of integers are given. Find the position (indexed from ) of the first occurrence of the smallest element of the sequence and its value.

The first position of the smallest element of a sequence

Input

The first line contains an integer . The next line contains integers .

Output

One line with two integers separated by a space: the position of the first smallest element and its value.

Note


Examples

Input #1
5
7 3 9 3 8
Output #1
2 3
Input #2
4
12 5 -2 8
Output #2
3 -2

Sign in to submit a solution

Signing up is free and takes a minute.