#Lutece1668. Drinks

Drinks

Migrated from Lutece 1668 Drinks

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Every weekend, dreamoondreamoon and drazildrazil play in the park, and for each time, one of them has to buys drinks for both. They agree to apply the following procedure to determine who is on the duty of buying drinks.

11.Put nn red balls and mm white balls in a paper bag.

22.dreamoondreamoon and drazildrazil draw a ball from the bag in turns. Note that once a ball is drawn, it is removed from the bag.

33.The person who draws a red ball first has to buy drinks.

drazildrazil lets dreamoondreamoon perform the first draw every week for dreamoondreamoon is older than him. One day, dreamoondreamoon suddenly wonders what is the probability that he draws a red ball first. Can you help him to calculate it? You may assume when every ball has the same probability to be drawn

Input

The first line contains a positive integer TT, T1770T ≤ 1770, indicating the number of test cases. Each test case has one line contains two positive integers nn and mm where 1n591 ≤ n ≤ 59, 1m591 ≤ m ≤ 59 and n+m60n + m ≤ 60. nn is the number of red balls, and mm is the number of white balls.

Output

For each test case, output one line containing the answer represented by a reduced fraction.

Samples

2
1 1
1 2
1/2
2/3

Resources

Taiwan > TOPC 2015 Problem D