You are under attack by a swarm of boxes. There are $N$ ($0 \le N \le 1000$) boxes, and every box is an axis-aligned rectangle (its sides are parallel to the coordinate axes). To defend yourself, you have a giant laser.
The laser sits at the origin and fires a single beam in one fixed direction. When the beam meets a box, it destroys that box and reflects off it.
The reflection rule depends on where the beam first touches the box:
A destroyed box disappears, so the beam may afterwards travel freely through the region that box used to occupy.
Report the indices of the destroyed boxes in the order in which they are destroyed.
It is guaranteed that no two boxes share any common point, and that no box contains the origin in its interior or on its boundary.
The first line contains $N$, the number of boxes.
The second line contains two integers $dx$ and $dy$ ($-1000 \le dx, dy \le 1000$, not both zero): a beam fired from the origin with nothing in its way passes through the point $(dx, dy)$.
Each of the next $N$ lines contains four integers $x_i$, $y_i$, $w_i$, and $h_i$ ($-1000 \le x_i, y_i \le 1000$ and $1 \le w_i, h_i \le 1000$) describing the $i$-th box, whose lower-left corner is $(x_i, y_i)$ and whose upper-right corner is $(x_i + w_i, y_i + h_i)$. The boxes are numbered $1$ through $N$ in the order given.
Let $k$ ($k \ge 0$) be the number of boxes that are destroyed. Print $k$ lines; the $i$-th line contains the index of the box destroyed on the $i$-th bounce. If $k = 0$, print nothing.