Hulk includes a set of distinct points P within the second plane. His signature move is Hulk Smash. He performed Hulk Smash on the set P that caused the points to alter, so he obtained a brand new set of points P′.
More formally, Hulk Smash makes the new set P′ within the following way:
Initially, let P′ be empty.
For every Pi and Pj specified 1≤i
Constraints
- The convex hull of the input set has positive area
- Sum of over all tests cases does not exceed
Subtasks
Subtask 1 (20 points):
- Sum of over all test cases does not exceed
Subtask 2 (80 points):
- Original constraints
Sample Input 1
2
7
1 7
-6 -5
1 -6
-6 7
-4 3
-2 6
-3 -6
4
1 8
1 4
1 0
5 4
Sample Output 1
8
4
ConversionConversion EmoticonEmoticon