Kunal and Satyam are playing a game. A game is like this there is a bag consists of R red balls and G green balls.
Both player draw a ball alternatively and never put it back.The player draw the red balls will win the game. Satyam always start the game.If No one can draw the red ball then Satyam will win. Find the probability that Satyam will win the game.
The first line will contain the number of test cases T.
The first line of each test case will contain a number R (number of red balls) and G(number of green balls )
For each testcase, print the desired probability.
Problem Setter : Surya Pratap Singh