You are writing a science fiction novel. In your story, humanity has spread throughout the galaxy and colonized many planets. Apart from interstellar travel, you keep every other technology — computers especially — close to what exists in today's world. So the computer networks on those colonized planets are still built by running copper or fiber-optic cable between the computers.
Modern computer networks use packet switching, so you do not have to run a separate cable between every pair of computers. It is enough for the network to remain strongly connected: for every pair of computers, there must exist at least one path (possibly forwarded through any number of intermediate computers) along which packets can travel in both directions.
This property lets you minimize the total length of cable needed so that every computer can still communicate with every other. For your newly colonized planet, you want to know the minimum total cable length required to connect all of its cities, with no redundant or aggregate links.
For the calculation, assume that:
The input gives the planet's diameter and the cities' coordinates as latitude and longitude in degrees. Latitude ranges from $-90^\circ$ at the South pole to $+90^\circ$ at the North pole, with $0^\circ$ at the equator. Longitude ranges from $-180^\circ$ to $+180^\circ$, with $0^\circ$ at the prime meridian; by convention, negative longitude is west of the prime meridian and positive longitude is east.
Given the available cable length $L$, decide whether it is enough to connect all the cities.
The first line contains a single integer $N$ ($1 \le N \le 100$), the number of data sets. Each data set consists of:
For each data set, print a single line. Print IS POSSIBLE if the available cable length $L$ is enough to network all the cities, or IS NOT POSSIBLE if the cable is too short.