Castle#1113

Castle

1 second
64 megabytes
Very easy

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.

Input

The only line of input contains two integers and (3 \le N \le 10^6, 1 \le K \le 10^6).

Output

Output a single number, the total number of rooms in the castle.

Examples

Example 1

Loading
Loading