Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

The problem statement has recently been changed. View the changes.

×
D. Hongcow Draws a Circle

time limit per test

6 secondsmemory limit per test

256 megabytesinput

standard inputoutput

standard outputHongcow really likes the color red. Hongcow doesn't like the color blue.

Hongcow is standing in an infinite field where there are *n* red points and *m* blue points.

Hongcow wants to draw a circle in the field such that this circle contains at least one red point, and no blue points. Points that line exactly on the boundary of the circle can be counted as either inside or outside.

Compute the radius of the largest circle that satisfies this condition. If this circle can have arbitrarily large size, print - 1. Otherwise, your answer will be accepted if it has relative or absolute error at most 10^{ - 4}.

Input

The first line of the input will contain two integers *n*, *m* (1 ≤ *n*, *m* ≤ 1, 000).

The next *n* lines will contain two integers *x*_{i}, *y*_{i} (1 ≤ *x*_{i}, *y*_{i} ≤ 10^{4}). This denotes the coordinates of a red point.

The next *m* lines will contain two integers *x*_{i}, *y*_{i} (1 ≤ *x*_{i}, *y*_{i} ≤ 10^{4}). This denotes the coordinates of a blue point.

No two points will have the same coordinates.

Output

Print - 1 if the circle can have arbitrary size. Otherwise, print a floating point number representing the largest radius circle that satisfies the conditions. Your answer will be considered correct if its absolute or relative error does not exceed 10^{ - 4}.

Namely, let's assume that your answer is *a* and the answer of the jury is *b*. The checker program will consider your answer correct if .

Examples

Input

2 5

2 3

3 4

1 1

1 4

4 2

4 7

2 5

Output

3.5355338827

Input

1 6

3 3

1 5

5 4

2 1

3 4

4 2

1 3

Output

1.5811388195

Input

2 2

2 2

3 3

1 1

4 4

Output

-1

Note

This is a picture of the first sample

This is a picture of the second sample

Codeforces (c) Copyright 2010-2022 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Aug/15/2022 03:51:28 (g1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|