Score : $600$ points
There is a set $S$ of points on a two-dimensional plane. $S$ is initially empty.
For each $i = 1, 2, \dots, Q$ in this order, process the following query.
Input is given from Standard Input in the following format:
$Q$ $X_1$ $Y_1$ $A_1$ $B_1$ $X_2$ $Y_2$ $A_2$ $B_2$ $\vdots$ $X_Q$ $Y_Q$ $A_Q$ $B_Q$
Print $Q$ lines. The $i$-th line should contain the answer for the $i$-th query.
4 1 0 -1 -1 0 1 2 0 -1 0 1 1 0 -1 1 -2
-1 2 1 2
9 -1 4 -8 -2 9 -9 -7 7 4 1 6 7 -4 -1 -4 -5 -9 3 -2 -6 -1 0 -8 5 -8 -5 0 0 8 3 0 -4 2 -5 2 5
0 35 31 21 36 87 0 36 31