D. Knights
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Berland is facing dark times again. The army of evil lord Van de Mart is going to conquer the whole kingdom. To the council of war called by the Berland's king Valery the Severe came n knights. After long discussions it became clear that the kingdom has exactly n control points (if the enemy conquers at least one of these points, the war is lost) and each knight will occupy one of these points.

Berland is divided into m + 1 regions with m fences, and the only way to get from one region to another is to climb over the fence. Each fence is a circle on a plane, no two fences have common points, and no control point is on the fence. You are given k pairs of numbers a i, b i. For each pair you have to find out: how many fences a knight from control point with index a i has to climb over to reach control point b i (in case when Van de Mart attacks control point b i first). As each knight rides a horse (it is very difficult to throw a horse over a fence), you are to find out for each pair the minimum amount of fences to climb over.

Input

The first input line contains three integers n, m, k (1 ≤ n, m ≤ 1000, 0 ≤ k ≤ 100000). Then follow n lines, each containing two integers Kx i, Ky i ( - 109 ≤ Kx i, Ky i ≤ 109) — coordinates of control point with index i. Control points can coincide.

Each of the following m lines describes fence with index i with three integers r i, Cx i, Cy i (1 ≤ r i ≤ 109,  - 109 ≤ Cx i, Cy i ≤ 109) — radius and center of the circle where the corresponding fence is situated.

Then follow k pairs of integers a i, b i (1 ≤ a i, b i ≤ n), each in a separate line — requests that you have to answer. a i and b i can coincide.

Output

Output exactly k lines, each containing one integer — the answer to the corresponding request.

Examples
Input
2 1 10 03 32 0 01 2
Output
1
Input
2 3 10 04 41 0 02 0 03 0 01 2
Output
3