Your program will be given a sequence of configurations, one per line, of the form:
N C0X C0Y C1X C1Y T1X T1Y T1R T2X T2Y T2R ...
Here, N is the number of towers, (C0X,C0Y) is the start of path of the cell phone user, (C1X,C1Y) is the end of the path, (TkX,TkY) is the position of the kth tower, and TkR is its transmission radius. The start and end points of the paths are distinct.
The last problem is terminated by the line
0