Oyvind tests job applicants with games. This one starts with a bag holding B black marbles and W white marbles. Outside the bag you have an unlimited supply of marbles of both colors.
The game runs in rounds. In each round you take two marbles out of the bag at random and put one marble back in. The color you put back depends on what came out.
Each round leaves the bag with one marble fewer, so the game ends when a single marble remains. Given the starting counts, find the probability that this last marble is black and the probability that it is white.
The first line has the number of test cases T. Each of the next T lines has two integers B and W separated by one space, the number of black marbles and the number of white marbles in the bag at the start.
Print one line for each test case with two numbers separated by one space. The first number is the probability that the last marble is black, the second is the probability that it is white. Print both probabilities with exactly two digits after the decimal point.