There are a total of N (1≤N≤105) cows on the number line. The location of the i-th cow is given by x_i (0≤x_i≤109), and the weight of the i-th cow is given by y_i (1≤y_i≤104).
At Farmer John's signal, some of the cows will form pairs such that
It's up to you to determine the range of possible sums of weights of the unpaired cows. Specifically,
The first line of input contains T, N, and K.
In each of the following N lines, the i-th contains x_i and y_i. It is guaranteed that 0≤x_1<x_2<⋯<x_N≤109.
Please print out the minimum or maximum possible sum of weights of the unpaired cows.