Task
The RoAlgo server is days old and we know how many members it had after every day. Find the day with the largest growth of the number of members, where the growth in day is calculated based on the formula , where is the number of members from day and is the number of members from dah . We will assume that , therefore the growth from day is .
Input data
The first line contains , the number of days since RoAlgo was created. The second line contains numbers, representing the number of members of the RoAlgo server. It is guaranteed that the numbers from the array are in non-decreasing order.
Output data
The first line contains the day with the largest increase in the growth of number of members. If there are more such days, print the earliest such day.
Constraints and clarifications
- ;
- .
Example
stdin
7
2 8 12 15 22 34 36
stdout
6
Explanation
The greatest growth came in the sixth day, as is the largest such difference.