tc = eval(input())
for i in range(0, tc):
    a = input().split(' ')
    print(int(a[0]) / (int(a[0]) + int(a[1])))

87926ee3653ad92523a9581ef483c5cb2e06db57
<mask token>

<mask token>
for i in range(0, tc):
    a = input().split(' ')
    print(int(a[0]) / (int(a[0]) + int(a[1])))

tc = eval(input())
for i in range(0, tc):
    a = input().split(' ')
    print(int(a[0]) / (int(a[0]) + int(a[1])))
