In the year , a boom in competitive programming has brought DOJ trillions of users. DOJ is holding a contest to choose its greatest idol.
There are candidates, numbered from to . To promote the contest, DOJ's administrator Dadas decides to conduct a preliminary opinion poll. There are potential respondents, numbered from to . Person supports candidate .
While preparing the poll, Dadas discovers something shocking: strictly more than half of all potential respondents support a single candidate! Such a predictable result would surely hurt the contest's popularity. After some thought, Dadas comes up with an ingenious solution: manipulate the poll! Since Dadas chooses who participates, selecting the right people should produce the desired result.
However, arbitrarily excluding people might expose the manipulation. To conceal it, Dadas decides to select respondents using at most contiguous intervals. Specifically, Dadas selects at most pairwise disjoint intervals . Only people belonging to a selected interval participate in the poll. Each interval contains at least one person. Selecting no intervals is also allowed.
Let be the number of the candidate supported by strictly more than half of all potential respondents. Dadas wants to maximize the following value among the selected people:
(number supporting a candidate other than ) (number supporting candidate )
How successfully can Dadas manipulate public opinion? Help Dadas find the maximum possible value.
The input is given in the following format.
Print the maximum value on the first line.
| 3 | 30 | . |
| 4 | 40 | No additional constraints. |