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.
Two integers $$$x$$$ and $$$y$$$ are entered, each on a separate line ($$$-10^6 \le x, y \le 10^6$$$).
Output a single integer — the answer.
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$$$.
2 1
16
-1 -2
21
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.
| Name |
|---|


