There are n circles c1,c2,…,cn on the plane. Repeat the following steps.
- Take the circle ci with the largest radius. If several circles share the largest radius, take the one with the smallest index.
- Remove ci and every circle that intersects ci. Two circles intersect if at least one point is contained in both of them. A point is contained in a circle if it lies inside the circle or on its border.
- Repeat steps 1 and 2 until no circle is left.

If the circle taken in the round that removes ci is cj, then cj eliminates ci. The circle taken in a round is removed in that same round, so a circle can eliminate itself. For every circle, find the index of the circle that eliminates it.