Lying From You

아직 제출이 없습니다시간 제한10초메모리 제한512 MB

문제

You are given nn lines on the plane, defined by equations of the form y=a_ix+b_iy = a\_i x + b\_i. You can change the coefficients of a line from (a,b)(a, b) to (a,b)(a', b') at the cost of aa+bb|a - a'| + |b - b'| rubles. You can do this operation an arbitrary number of times with arbitrary lines, and the resulting coefficients can be any real numbers. Your goal is to make all the lines share a common point.

Let CC be the set of total costs of operations leading to the goal. Find infC\inf C, that is, the tight lower bound for the total cost.

입력

The first line contains a positive integer nn (1n1051 \le n \le 10^5), the number of lines.

Each of the next nn lines contains two integers a_ia\_i and b_ib\_i (a_i,b_i106|a\_i|, |b\_i| \le 10^6).

출력

Print the answer on a single line with absolute or relative error no more than 10610^{-6}.

힌트

In the first example, it is enough to change bb of the first line to 0.5-0.5.