The first line contains two integers(
) - the number of stars and the number of light regions.
The followinglines describe all the stars on the plane. The
-th of these lines contains two integers
(
), describing the coordinates.
The followinglines describe all light regions. The
-th of these lines contains two integers
(
), describing an illuminated region. The evaluation of degree starts from the positive x-axis and rotates clockwise.
It is guaranteed that any two different angle intervals do not intersect.
One line containsintegers, denoting the number of times each star is lightened.