#CCBCHBAHAI0000150. Số nhỏ nhất và vị trí (Lowest Number and Position)

Số nhỏ nhất và vị trí (Lowest Number and Position)

Lowest Number and Position

Source: beecrowd

Version: Phuoc Hung OJ Extended

Problem Statement

Given an integer array X=(x0,x1,…,xn−1)X=(x_0,x_1,\ldots,x_{n-1}), find the smallest value and its 00-based index.

All input values are distinct, so the minimum position is unique.

Input

  • The first line contains an integer nn.
  • The second line contains nn integers x0,x1,…,xn−1x_0,x_1,\ldots,x_{n-1}.

Output

Print exactly two lines:

  • Menor valor: v, where vv is the minimum value;
  • Posicao: p, where pp is the 00-based index of vv.

The spelling, capitalization, colon, and lack of accents in these two labels must be preserved exactly.

Subtasks

Subtask 1 (100 points): 2≤n≤9992\le n\le999; −109≤xi≤109-10^9\le x_i\le10^9; all values are pairwise distinct.

Examples

Input

10
1 2 3 4 -5 6 7 8 9 10

Output

Menor valor: -5
Posicao: 4

Explanation

The minimum value is −5-5. It is stored at index 44 when using 00-based indexing, so the two output lines are Menor valor: -5 and Posicao: 4.