Grammy bought a big cake. The shape of the cake is a regular polygon. That is, a convex polygon whose all interior angles are equal and all edges are equal.
Grammy wants to cut the cake into a pretty pattern and share the cake with her friends. She indexed the vertices

through

in counterclockwise order and chooses an integer

. After that, she cuts the cake through

straight lines connecting vertex

and vertex
%5Cbmod%20n)
for each

.
Grammy wants to know the number of pieces after cutting the cake. Please calculate it for her.
输入描述:
The only line contains
integers
(
), denoting the number of sides of the regular polygon and the integer chosen by Grammy.
输出描述:
Output a single integer in a line, denoting the number of pieces after cutting the cake.
备注:
For the sample test case, the final cake is shown below:
