1. Rhombic Order
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

An infinite grid is filled with consecutive natural numbers arranged in the form of concentric rhombuses. The filling of each rhombus starts from its top cell and goes clockwise — see the figure. The cell containing the number 1 is called the central cell.

Write a program that, for a given pair of values x and y, will find the number in the cell that is x steps horizontally and y steps vertically away from the central cell.

Input

Two integers $$$x$$$ and $$$y$$$ are entered, each on a separate line ($$$-10^6 \le x, y \le 10^6$$$).

Output

Output a single integer — the answer.

Scoring

Subtask 1 (up to 36 points): $$$-3 \le x, y \le 3$$$.

Subtask 2 (up to 32 points): $$$-1000 \le x, y \le 1000$$$.

Subtask 3 (up to 32 points): $$$-10^6 \le x, y \le 10^6$$$.

Examples
Input
2
1
Output
16
Input
-1
-2
Output
21
Note

Note that the answer in the last subtask may be quite large and may not fit into a 32-bit data type. It is recommended to use a 64-bit data type, for example, the long long type in C++, the int64 type in Pascal, the long type in Java and C#. Python automatically works with integers of any length.