Maximum element#7846

Maximum element

1 second
128 megabytes
Very easy (≈850)

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.

Input

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 .

Output

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

Examples

Example 1

Loading
Loading