Election

Given N total votes, M counted votes split as V1 and V2, and a threshold W, decide if the probability that candidate 1 wins (when each remaining vote is a fair coin) exceeds W%.

Easy3ProbabilityMathCombinatoricsImplementationInterviewNo attempts yetTime limit1sMemory limit512 MB

Problem

The fundraising, the campaigning and the debates are over, and election day has arrived. Two candidates are left on the ballot, and you work as an aide to one of them.

Reports from the polling stations are starting to come in, and you hope to declare a victory soon.

There are NN voters, and every one of them votes for one of the two candidates. There are no spoiled ballots. To win, a candidate needs more than half of all NN votes. So far MNM \le N ballots have been counted, and candidate ii holds ViV_i of them, where V1+V2=MV_1 + V_2 = M. V1V_1 is the count for your candidate.

From past data and careful polling you know that each uncounted ballot goes to your candidate with probability 50%, independently of the others. That is why you think the win can be announced before the count finishes. If the probability of winning is strictly greater than the threshold WW, the victory is yours. Just be sure about it, nobody wants a scandal.

Input

The first line contains one integer TT (1T1001 \le T \le 100), the number of test cases. Each of the next TT lines contains four integers NN, V1V_1, V2V_2 and WW.

  • 1N501 \le N \le 50
  • 50W<10050 \le W < 100
  • V1,V20V_1, V_2 \ge 0
  • V1+V2NV_1 + V_2 \le N

Output

For each test case print the matching action on its own line.

  • If the probability that your candidate wins is strictly greater than WW%, print GET A CRATE OF CHAMPAGNE FROM THE BASEMENT!
  • If your candidate has no chance of winning, print RECOUNT!
  • Otherwise print PATIENCE, EVERYONE!