#P1575B. Building an Amusement Park

Building an Amusement Park

Description

Mr. Chanek lives in a city represented as a plane. He wants to build an amusement park in the shape of a circle of radius rr. The circle must touch the origin (point (0,0)(0, 0)).

There are nn bird habitats that can be a photo spot for the tourists in the park. The ii-th bird habitat is at point pi=(xi,yi)p_i = (x_i, y_i).

Find the minimum radius rr of a park with at least kk bird habitats inside.

A point is considered to be inside the park if and only if the distance between pip_i and the center of the park is less than or equal to the radius of the park. Note that the center and the radius of the park do not need to be integers.

In this problem, it is guaranteed that the given input always has a solution with r2105r \leq 2 \cdot 10^5.

The first line contains two integers nn and kk (1n1051 \leq n \leq 10^5, 1kn1 \leq k \leq n) — the number of bird habitats in the city and the number of bird habitats required to be inside the park.

The ii-th of the next nn lines contains two integers xix_i and yiy_i (0xi,yi1050 \leq |x_i|, |y_i| \leq 10^5) — the position of the ii-th bird habitat.

Output a single real number rr denoting the minimum radius of a park with at least kk bird habitats inside. It is guaranteed that the given input always has a solution with r2105r \leq 2 \cdot 10^5.

Your answer is considered correct if its absolute or relative error does not exceed 10410^{-4}.

Formally, let your answer be aa, and the jury's answer be bb. Your answer is accepted if and only if abmax(1,b)104\frac{|a - b|}{\max{(1, |b|)}} \le 10^{-4}.

Input

The first line contains two integers nn and kk (1n1051 \leq n \leq 10^5, 1kn1 \leq k \leq n) — the number of bird habitats in the city and the number of bird habitats required to be inside the park.

The ii-th of the next nn lines contains two integers xix_i and yiy_i (0xi,yi1050 \leq |x_i|, |y_i| \leq 10^5) — the position of the ii-th bird habitat.

Output

Output a single real number rr denoting the minimum radius of a park with at least kk bird habitats inside. It is guaranteed that the given input always has a solution with r2105r \leq 2 \cdot 10^5.

Your answer is considered correct if its absolute or relative error does not exceed 10410^{-4}.

Formally, let your answer be aa, and the jury's answer be bb. Your answer is accepted if and only if abmax(1,b)104\frac{|a - b|}{\max{(1, |b|)}} \le 10^{-4}.

Sample Input 1

8 4
-3 1
-4 4
1 5
2 2
2 -2
-2 -4
-1 -1
-6 0

Sample Output 1

3.1622776589

Sample Input 2

1 1
0 0

Sample Output 2

0.0000000000

Note

In the first example, Mr. Chanek can put the center of the park at (3,1)(-3, -1) with radius 103.162\sqrt{10} \approx 3.162. It can be proven this is the minimum rr.

The following illustrates the first example. The blue points represent bird habitats and the red circle represents the amusement park.