Plot

No attempts yetTime limit30sMemory limit128 MB

Problem

We call any sequence of points in the plane a plot. We want to replace a given plot (P1,,Pn)(P_1, \dots, P_n) with another one that has at most mm points (mnm \le n) and resembles the original as closely as possible.

The new plot is built as follows. The sequence (P1,,Pn)(P_1, \dots, P_n) is split into ss (sms \le m) contiguous subsequences

(Pk0+1,,Pk1), (Pk1+1,,Pk2), , (Pks1+1,,Pks)(P_{k_0+1}, \dots, P_{k_1}),\ (P_{k_1+1}, \dots, P_{k_2}),\ \dots,\ (P_{k_{s-1}+1}, \dots, P_{k_s})

where 0=k0<k1<k2<<ks=n0 = k_0 < k_1 < k_2 < \dots < k_s = n. Then each subsequence (Pki1+1,,Pki)(P_{k_{i-1}+1}, \dots, P_{k_i}) (for i=1,,si = 1, \dots, s) is replaced by a single new point QiQ_i. We say that each of the points Pki1+1,,PkiP_{k_{i-1}+1}, \dots, P_{k_i} has been contracted to the point QiQ_i. The result is a new plot consisting of the points Q1,,QsQ_1, \dots, Q_s.

The resemblance of such a plot to the original is measured by the maximum distance from any point P1,,PnP_1, \dots, P_n to the point it was contracted to:

maxi=1,,s(maxj=ki1+1,,kid(Pj,Qi))\max_{i=1,\dots,s} \left( \max_{j=k_{i-1}+1,\dots,k_i} d(P_j, Q_i) \right)

where d(Pj,Qi)d(P_j, Q_i) is the distance between the two points, given by the well-known formula

d((x1,y1),(x2,y2))=(x2x1)2+(y2y1)2d((x_1, y_1), (x_2, y_2)) = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

example plot

The figure above shows an example plot (P1,,P7)(P_1, \dots, P_7) and the new plot (Q1,Q2)(Q_1, Q_2), where (P1,,P4)(P_1, \dots, P_4) are contracted to Q1Q_1 and (P5,P6,P7)(P_5, P_6, P_7) to Q2Q_2.

Given a plot of nn points, among all plots with at most mm points obtainable this way (the split into contiguous subsequences is arbitrary), the resemblance to the original can be made as small as possible. Find that smallest possible resemblance value dd.

Input

The first line contains two integers nn and mm separated by a single space (1mn1000001 \le m \le n \le 100000). Each of the next nn lines contains two integers separated by a single space; the ii-th of them gives xix_i and yiy_i (1000000xi,yi1000000-1000000 \le x_i, y_i \le 1000000), the coordinates (xi,yi)(x_i, y_i) of the point PiP_i.

Output

Print a single real number dd: the minimum possible resemblance (the smallest achievable value of the maximum contraction distance) over all plots with at most mm points. Print it rounded to exactly 66 digits after the decimal point.