You are given a array of
)
integers. For a pair
%2Cl%3C%3Dr)
, we consider it's valid if the subarray between

and

is waved .The array is waved if and only if

or

.
Fop_zz wants to know the length of the longest waved subarray. Formally, you should tell him the maximum value of
)
for all valid pairs
)
.
It is guaranteed that

is between

and

.
输入描述:
The first line contains the length of the array
.
The second line contains
integers represent the elements of the array 
输出描述:
Output a single integer representing the length of the longest waved subarray.