L. Yet another points problem
time limit per test
2 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Example
Input
6
4 0
6 0
4 100
6 100
0 50
100 50
Output
28