In Legends of the League, Okke is a character that can control time. His most powerful ability is to reverse damage and healing done to him. Of course, he will use it so that the reduction to his health points is minimized.
Damage and healing events are represented as an array of integers. Okke will apply the following operation on the array exactly once:
Choose integers and () and replace all () with .
In the end, he wants the sum of the elements of to be as small as possible.
Input
The first line contains a single integer () – the length of the array .
The second line contains integers ().
Output
Print and – the indices chosen for the operation.
If there are multiple solutions, print the one that minimizes . If there are multiple solutions that minimize , print the one that maximizes .
Example
stdin
5
3 2 -1 4 -3
stdout
1 4
Notes
After applying the operation for and , the array becomes , having the sum , which is the smallest possible sum.