← Problem book: C Lesson 58 of 96 · 10 XP

Position of the maximum

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

The first line contains the count of numbers n (n ≥ 1), the second — the n integers themselves, separated by spaces.

Print the position of the largest number (numbering from 1). If there are several maximums, print the position of the first one.

Example

Input:

5
3 7 2 7 1

Output:

2

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.