x,y = map(int,input().split()) z = 0 i = (x + 1) * y for j in range(x + 1): z += (j * (1 / float(i))) * y print(z)