On a plane, there are points. Your task is to construct the convex hull for these points and output the length of its perimeter.
The first line contains an integer (1 \leq n \leq 20000) — the number of points. Each of the next lines contains two integers x_i and y_i — the coordinates of a point. All coordinates do not exceed in absolute value.
Output the perimeter of the convex hull with the highest precision possible. If the convex hull consists of exactly points, output twice the length of the line segment connecting them.
Esempio 1