6 4 2 1 4 1 5 1 5 4 7 1 6 4
3
1 ≤ N ≤ 100 1 ≤ A ≤ 200 000 Each point has 0 ≤ x ≤ 3 000 000 and 1 ≤ y ≤ A For 30% of the test cases, 1 ≤ N ≤ 18