
The castle consists of levels. Each level is a regular -gon, with its angles aligned with the previous level (the structure of the castle for example input is shown in the figure). On each side of the first level, there are two rooms, and on each side of every next level, there is one more room than the previous level. Find the total number of rooms in the castle.
The only line of input contains two integers and (3 \le N \le 10^6, 1 \le K \le 10^6).
Output a single number, the total number of rooms in the castle.
Example 1