#icpc2015summerday4e. [icpc2015summer_day4_e]Enclose Points

[icpc2015summer_day4_e]Enclose Points

MathJax.Hub.Config({ tex2jax: { inlineMath: [["","",""], ["\\(","\\)"]], processEscapes: true }}); blockquote { font-family: Menlo, Monaco, "Courier New", monospace; color: #333333; display: block; padding: 8.5px; margin: 0 0 9px; font-size: 12px; line-height: 18px; background-color: #f5f5f5; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; white-space: pre; white-space: pre-wrap; word-break: break-all; word-wrap: break-word; }

Problem Statement

There are NN points and MM segments on the xyxy-plane. Each segment connects two of these points and they don't intersect each other except at the endpoints. You are also given QQ points as queries. Your task is to determine for each query point whether you can make a polygon that encloses the query point using some of the given segments. Note that the polygon should not necessarily be convex.


Input

Each input is formatted as follows.

NN MM QQ
x_1x\_1 y_1y\_1
...
x_Nx\_N y_Ny\_N
a_1a\_1 b_1b\_1
...
a_Ma\_M b_Mb\_M
qx_1qx\_1 qy_1qy\_1
...
qx_Qqx\_Q qy_Qqy\_Q

The first line contains three integers NN (2leqNleq100,0002 \\leq N \\leq 100{,}000), MM (1leqMleq100,0001 \\leq M \\leq 100{,}000), and QQ (1leqQleq100,0001 \\leq Q \\leq 100{,}000), which represent the number of points, the number of segments, and the number of queries, respectively. Each of the following NN lines contains two integers x_ix\_i and y_iy\_i (100,000leqx_i,y_ileq100,000-100{,}000 \\leq x\_i, y\_i \\leq 100{,}000), the coordinates of the ii-th point. The points are guaranteed to be distinct, that is, (x_i,y_i)neq(x_j,y_j)(x\_i, y\_i) \\neq (x\_j, y\_j) when ineqji \\neq j. Each of the following MM lines contains two integers a_ia\_i and b_ib\_i (1leqa_iltb_ileqN1 \\leq a\_i \\lt b\_i \\leq N), which indicate that the ii-th segment connects the a_ia\_i-th point and the b_ib\_i-th point. Assume that those segments do not intersect each other except at the endpoints. Each of the following QQ lines contains two integers qx_iqx\_i and qy_iqy\_i (100,000leqqx_i,qy_ileq100,000-100{,}000 \\leq qx\_i, qy\_i \\leq 100{,}000), the coordinates of the ii-th query point.

You can assume that, for any pair of query point and segment, the distance between them is at least 10410^{-4}.

Output

The output should contain QQ lines. Print "Yes" on the ii-th line if there is a polygon that contains the ii-th query point. Otherwise print "No" on the ii-th line.


Sample Input 1

4 5 3
-10 -10
10 -10
10 10
-10 10
1 2
1 3
1 4
2 3
3 4
-20 0
1 0
20 0```

### Output for the Sample Input 1

```plain
No
Yes
No```

* * *

### Sample Input 2

```plain
8 8 5
-20 -20
20 -20
20 20
-20 20
-10 -10
10 -10
10 10
-10 10
1 2
1 4
2 3
3 4
5 6
5 8
6 7
7 8
-25 0
-15 0
0 0
15 0
25 0```

### Output for the Sample Input 2

```plain
No
Yes
Yes
Yes
No```

* * *

### Sample Input 3

```plain
8 8 5
-20 -10
-10 -10
-10 10
-20 10
10 -10
20 -10
20 10
10 10
1 2
2 3
3 4
1 4
5 6
6 7
7 8
5 8
-30 0
-15 0
0 0
15 0
30 0```

### Output for the Sample Input 3

```plain
No
Yes
No
Yes
No```

* * *