Television Reception

Count households inside East Germany that lie within a West German tower radius and outside every jammer radius.

Medium4GeometryNo attempts yetTime limit6sMemory limit256 MB

Problem

Under Soviet influence, East Germany kept tight control over access to media. Many East Germans still received West German channels in secret and watched them at home. Whether a home received such a channel depended on where the television towers stood, how far away they were, and whether a jamming device sat close by.

You are given the polygon that forms the border of East Germany, the positions and broadcast radii of several television towers, and the positions and radii of the jammers. A household receives West German television if it lies within the broadcast radius of at least one tower located in West Germany and within the radius of no jammer. Count the households that receive West German television.

Every household lies at least 0.001 away from the radius boundary of any tower or jammer, on the inside or on the outside.

Input

The first line contains the number of data sets KK. Then KK data sets follow, each in this form.

The first line contains four integers nn, HH, TT, BB. Here nn is the number of points that describe the geography of East Germany, with 3n10003 \le n \le 1000. HH is the number of households, with 0H10000 \le H \le 1000, TT is the number of television towers, with 0T500 \le T \le 50, and BB is the number of jammers, with 0B500 \le B \le 50.

The next nn lines each contain two real numbers, the coordinates of one corner of the polygon, given in order along the border. The order can be clockwise or counterclockwise. The polygon never crosses itself.

The next HH lines each contain two real numbers, the position of one household. Every household lies inside East Germany.

The next TT lines each contain three real numbers xix_i, yiy_i, rir_i. The pair (xi,yi)(x_i, y_i) is the position of the ii-th television tower and ri0r_i \ge 0 is its broadcast radius. A tower can stand inside or outside East Germany, but it never lies on the border. Every tower that is not inside East Germany counts as being in West Germany.

The last BB lines each contain three real numbers xix_i, yiy_i, rir_i. The pair (xi,yi)(x_i, y_i) is the position of the ii-th jammer and ri0r_i \ge 0 is its radius. Jammers always lie inside East Germany.

Output

For each data set, first print Data Set x: on a line of its own, where x is the number of the data set counting from 1. On the next line print the number of households that receive West German television. Print one blank line after each data set.