Maximum element#7846

Maximum element

1 segundo
128 megabytes
Muy fácil

An array of integers is given. Print the value of the largest element, followed by its index in the array. Indexing starts from . If there are multiple largest elements, print the index of the first one.

Entrada

The first line contains one single integer n~(n \le 100) — the number of elements in the array. The second line contains integers, each with an absolute value not exceeding .

Salida

Print the value of the largest element and its index in the array.

Ejemplos

Ejemplo 1

Loading
Loading