#C1328. Max Distance Day

    ID: 42800 Type: Default 1000ms 256MiB

Max Distance Day

Max Distance Day

Tom has been keeping a record of the distances he ran over a number of days. Given the number of days and the list of distances he ran each day, determine the day on which he ran the longest distance. The day number is 1-indexed, and if there are multiple days with the same maximum distance, the earliest day should be returned.

Note: Input is read from standard input and output is written to standard output.

inputFormat

The first line contains an integer D representing the number of days. The second line contains D space-separated integers, where each integer indicates the distance run on that day.

outputFormat

Output a single integer representing the 1-indexed day on which Tom ran the maximum distance.

## sample
1
5
1

</p>