Consider an isothetic rectangle (where "isothetic" means "with sides parallel to coordinate axes"), left bottom corner has coordinates , right top one — (x_{\max}, y_{\max}). There are points P_1 (x_1, y_1), P_2 (x_2, y_2), …, P_N (x_N, y_N) inside the rectangle (0 < x_i < x_{\max}, 0 < y_i < y_{\max}). Consider polygonal chains SP_{i1}P_{i2}...P_{ik}F satisfying the following constraints:
All internal vertices P_{ij} are some of the given points; quantity of selected points can be any 0 \leq k \leq N;
Start vertex (x_S, y_S) is located on the left side of the rectangle or outside it to the left (x_S \leq 0, 0 \leq y_S \leq y_{\max});
End vertex (x_F, y_F) is located on the right side of the rectangle or outside it to the right (x_F \geq x_{\max}, 0 \leq y_F \leq y_{\max}).
Let's call such chain constant-length if and only if Euclidean lengths of all segments are equal (|SP_{i1}| = |P_{i1}P_{i2}| = ... = |P_{ik}F|). It's easy to see that there is at least one constant-length polygonal chain for any rectangle and any set of given points: this is segment with coordinates S(0, 0), F(x_{\max}, 0) which satisfies all the constraints.
Your task is to write a program to find a constant-length chain with minimal length of segment. It is easy to see that square (second degree) of the minimal length is always integer, so program should output square of the length, as integer number.
The first line of input data contains three space-separated integers x_{\max} y_{\max} — coordinates of the right-top corner and number of given points. Each of the following lines contains two space-separated integers x_i y_i — coordinates of given point.
Constraints: 1 \leq N \leq 1000; 5 \leq x_{\max}, y_{\max} \leq 32000; for all 1 \leq i \leq N, 0 < x_i < x_{\max}, 0 < y_i < y_{\max}.
Your program should write exactly one integer: square of the minimal possible segment length among constant-length polygonal chains.

Exemple 1
We may build some constant-length chains with segment length squared (for example: , , , ), but cannot build any constant-length chain for smaller lengths.