Oh no! Hugo is trying to escape a prison. Fortunately, there are $N$ guards to catch him. Let's number the guards from $1$ to $N$.

We can model the prison as a 2D coordinate plane. Hugo is at position $(x_0, y_0)$, and guard $i$ is at position $(x_i, y_i)$. It is possible for Hugo or any of the guards to share the same position.

We want to find the guard closest to Hugo, so we can catch him as soon as possible. Output the index of the guard who is the closest to Hugo. If there are multiple guards that are closest to Hugo, output the guard who has the lowest index.

The (Euclidean) distance between two positions $(x, y)$ and $(x', y')$ is calculated as

$$\sqrt{(x - x')^2 + (y - y')^2}$$

Input

The first line of input contains an integer $N$.
The second line of input contains two integers $x_0$ and $y_0$, which describe Hugo's position.
The next $N$ lines of input contains two integers $x_i$ and $y_i$, which describe the position of guard $i$. The guards' positions are given in ascending order of index.

Output

Output the index of the guard who is the closest to Hugo. If there are multiple guards that are closest to Hugo, output the guard who has the lowest index.

Constraints

$1 \le N \le 10000$
$-1000 \le x_i, y_i \le 1000$

Sample Test Cases

Input Output
5
0 0
1 1
-1 2
-1 1
-2 3
2 2
1
Guards 1 and 3 are the same distance from Hugo.
We output the one with lower index.
Click to copy.

Scoring: Per Subtask
Authored by s16f22
Appeared in 2024 Mini Contest 0