Corridor

No attempts yetTime limit1sMemory limit128 MB

Problem

There is a rectangular corridor whose width (west–east) is mm and whose depth (south–north) is nn. Several pillars of negligible size (treated as points) stand inside the corridor, and each pillar rises vertically from the floor to the ceiling.

You want to roll a perfectly spherical ball through the corridor from its west side to its east side. The ball may start anywhere on the west side and may exit at any position on the east side. The corridor is so tall that the ball never touches the ceiling.

Write a program that finds the radius of the largest ball that can pass through the corridor.

Input

The first line contains the corridor's width mm and depth nn. The second line contains the number of pillars kk. Each of the next kk lines contains one pillar's coordinates in the form x y, where xx is the west–east coordinate and yy is the south–north coordinate. (0n,m,k10000 \le n, m, k \le 1000)

The west–east axis points from west to east, so a smaller xx is farther west and a larger xx is farther east. The south–north axis points from south to north, so a smaller yy is farther south and a larger yy is farther north. All coordinates are integers, and every pillar lies inside the corridor, so 0xm0 \le x \le m and 0yn0 \le y \le n.

Output

Print the radius of the largest ball that can pass through the corridor, to eight digits after the decimal point (pad with trailing zeros if needed).