Unenslaved puppy
A dog was attacked by angry bees. To hide from them, kind smurfs built domes.
Mathematically a dome is a semicircle with center at point and radius . It is impossible to pass through the wall of the dome. The dog and the beehive can be represented as two points and . If a point is inside the dome, we consider it to be inside.
Help the dog find out whether it is safe. That is, whether the bees can reach the dog without crossing the walls of domes.
Input
The first line contains five integers , , , , .
Each of the following lines contains two integers and .
Output
If the bees can reach the dog without crossing the walls of domes, print «YES
».
Otherwise, in the first line print «NO
», and in the second line print the smallest index (starting from one) of the dome that separates the bee and the dog.
Examples
Note
Explanation for the first test:
Explanation for the second test:
Explanation for the third test: