#D958. Ravage
Ravage
Ravage
I: Ravage
Santa Claus was caught in the illuminations of the city and broke it.
There are N light bulbs in the illumination, and the th light bulb only comes on when the voltage is above and below .
The voltage should be the same everywhere in the illumination.
Find out how many light bulbs can be lit at the same time by adjusting the voltage.
input
The integer is given on the first line.
Of the following lines, are given on the line, separated by blanks.
output
Output the maximum number of light bulbs that can be illuminated at the same time.
Constraint
- is an integer greater than or equal to and less than or equal to
- are integers greater than or equal to and less than or equal to
- are integers greater than or equal to and less than or equal to
- Satisfy for all light bulbs
Input example 1
Four 14 3 6 2 7 5 8
Output example 1
3
When the voltage is or , there are bulbs.
Input example 2
2 1 2 twenty three
Output example 2
2
Example
Input
4 1 4 3 6 2 7 5 8
Output
3
inputFormat
input
The integer is given on the first line.
Of the following lines, are given on the line, separated by blanks.
outputFormat
output
Output the maximum number of light bulbs that can be illuminated at the same time.
Constraint
- is an integer greater than or equal to and less than or equal to
- are integers greater than or equal to and less than or equal to
- are integers greater than or equal to and less than or equal to
- Satisfy for all light bulbs
Input example 1
Four 14 3 6 2 7 5 8
Output example 1
3
When the voltage is or , there are bulbs.
Input example 2
2 1 2 twenty three
Output example 2
2
Example
Input
4 1 4 3 6 2 7 5 8
Output
3
样例
4
1 4
3 6
2 7
5 8
3