# coding=utf-8 if __name__ == "__main__": rb = input().strip().split() r = int(rb[0])+1 b = int(rb[1])+1 rr = max(r, 2) bb = max(b, 3) dp = [bb*[0] for i in range(rr)] for i in range(1, r): dp[i][1] = i / (i+1) dp[i][0] = 1 dp[1][2] = 1/3 ...