God! Save me
You are in a room with doors. If you open the door numbered , then after hours you will either reach a safe place or return to this same room. Calculate the expected time (in hours) after which you can escape the room to a safe place.
Input
The first line contains the number of tests. The first line of each test contains the number of doors . Each of the following lines contains two numbers and .
If is positive, it represents the time after which you can reach a safe place;
If is negative, then represents the time after which you will find yourself back in the room;
Here, is the probability of opening the -th door. The sum of all equals .
Output
For each test, print its number, a colon, a space, and then:
the phrase "God! Save me" if it is impossible to escape from the room;
or the expected time with decimal places, after which you can escape from the room to a safe place.