Sakurako gets to Cracow and, as any other tourist, wants to visit all sights in this city. But the problem is that there will be a contest very soon, so she needs to hurry.
There are sights described by a pair of numbers (the -th sight described by (x_i,y_i)). The good news is that she took her pet Martel, who can change the coordinate of any place from to if x^2+y^2=a^2+b^2.
Sakurako starts her visits from her hotel at the coordinate and wants to return there. She asks you to find the square of the length of the minimum path that visits all places and returns to the hotel.
The distance between points and is defined as \sqrt{(a-x)^2+(b-y)^2}.
The first line contains one integer (1\le n\le 2\cdot 10^5) — the number of points.
The second line contains integers x_1,x_2,\dots,x_n (-10^9\le x_i\le 10^9) — the first coordinate of sights.
The third line contains integers y_1,y_2,\dots,y_n (-10^9\le y_i\le 10^9) — the second coordinate of sights.
Output one integer — the square of the length of the minimum path after applying any number of changes to coordinates (possibly zero).
Example 1
Example 2
In the first example, it can be proven that we do not need to change any coordinate. So, we travel from point to which has distance \sqrt{2 \cdot 2+3 \cdot 3}=\sqrt{4+9}=\sqrt{13} in both directions. So the answer is 2\cdot \sqrt{13} and the square of it is .
In the second example, we can change the second point from to since 0 \cdot 0+(-4) \cdot (-4)=0 \cdot 0+4 \cdot 4. Then, Sakurako goes from to with distance , from to with distance , and from to with distance and the same in the opposite direction. So, the answer is (1+3+5) \cdot 2=18. And the square of it is .
( points): x_i^2+y_i^2\le 18 for all ;
( points): n=1;
( points): n\le 10;
( points): without additional constraints.