Castle#398

Castle

1 second
64 megabytes
Very easy (≈850)

The castle consists of K levels. Each level - this is the correct N-gon, the angle of which coincides with the angle of the previous (the structure of the castle for example, input data is shown in the figure). On the sides of the first level are two rooms on each side of the next - one more. How many rooms in the castle?

Input

In a single line of input file specifies two integers N and K (3 ≤ N ≤ 10^6, 1 ≤ K ≤ 10^6).

Output

Bring out a single number - the number of rooms in the castle.

Examples

Example 1

Loading
Loading