W = input()
D = input()
for i in range(D, 1, -1):
    W -= W / (i * i)
print(W)