Chuchu has got an array A of n intergers and he want to maximize the power of the array. Power of an array is defined as,
In order to maximize the power, he is allowed to do following operation at most once,
Note: Given array A is 1-indexed.
Input:
Output:
Print the maximum power of array Chuchu can obtain after performing given operation at most once.
Constraints:
For given test case, before performing any operation Power(A)=42.
After rotating subarray [2,7,1] right by 1 element, A becomes [1,1,1,2,7], now Power(A)=49.