eolymp
bolt
Try our new interface for solving problems
Problems

Convex Hull

Convex Hull

Given n points. Find the area of their convex hull.

Input

The first line contains the number of points n (3n106). Next n lines contains the points coordinates. All coordinates are integers, not greater than 109.

Output

Print the area of convex hull with maximal accuracy.

Time limit 1 second
Memory limit 122.49 MiB
Input example #1
5
0 0
2 0
2 2
1 1
0 2
Output example #1
4