
A base radio station broadcasts over a circular region centered at (x0,y0) with radius R.
To enlarge its audience, you may build relay stations at some of N candidate sites. If a relay is built at site i, it covers a disk centered at (xi,yi) with radius ri. Every candidate site lies inside the base station's region, that is (x0−xi)2+(y0−yi)2≤R2.
Choose a subset of the sites to build relays so that:
A relay disk may overlap the base station's region; only overlap between two relay disks is forbidden. Report the maximum possible total covered area.
The input contains the integer N, then the real numbers x0, y0, R, then N triples of real numbers xi, yi, ri. Values are separated by whitespace and may span multiple lines.
Print the maximum total covered area, rounded to 4 decimal places.