Marathon 2

No attempts yetTime limit1sMemory limit256 MB

Problem

Farmer John decided that his cows were out of shape, so he organized a marathon for them. Bessie, his favorite cow, is going to run it.

The course consists of NN checkpoints. The marathon starts at checkpoint 1, visits every checkpoint in index order, and finishes at checkpoint NN. Bessie is lazy. She will run the race, but she wants to secretly skip up to KK of the checkpoints in the middle. Skipping checkpoint 1 or checkpoint NN would be far too obvious, so she leaves those two alone.

If Bessie skips at most KK checkpoints, what is the shortest distance she has to run?

The race is held in the middle of the city, so distances are taxicab (Manhattan) distances. The distance between (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is x1x2+y1y2|x_1 - x_2| + |y_1 - y_2|, where x|x| denotes absolute value.

Input

The first line contains the number of checkpoints NN and the number of checkpoints Bessie may skip KK (3N5003 \le N \le 500, 0K<N0 \le K < N).

Each of the next NN lines contains two integers. The first integer on line ii is the xx coordinate of checkpoint ii and the second is its yy coordinate (1000x1000-1000 \le x \le 1000, 1000y1000-1000 \le y \le 1000).

Two checkpoints may share the same coordinates. When Bessie skips a checkpoint she skips only that index, not every checkpoint located at that point.

Output

Print the shortest distance Bessie can run while skipping at most KK checkpoints.

Hint

In the first example Bessie skips checkpoints 2 and 4, so she runs (0,0)(0, 0), (1,1)(1, 1), (2,2)(2, 2) for a total distance of 4. No route is shorter.