There are n matches placed in a row, each standing right next to the previous one, all with their heads (the tip that catches fire) pointing up. The i-th match has height hi.
If you set fire to one match, it burns from the head downward and its height shrinks. The current height of a burning match falls from its original height all the way down to 0.
At the instant a burning match's current height becomes equal to the head height of an adjacent match (the one immediately to its left or right), the fire spreads to that neighbor, which then starts burning as well. A newly ignited match can pass the fire on to its own neighbors in the same way.
You may light exactly one match at the start. Choose it so that as many matches as possible burn, and report the maximum number of matches that can burn.
The first line contains the number of matches n (1≤n≤106). The second line contains n integers h1,h2,…,hn (1≤hi≤109) separated by spaces, where hi is the height of the i-th match.
Print a single integer on one line: the maximum number of matches that can burn.