N = int(input())
R = float(input())
R = 1 - R
ans = (1.00 - pow(R, N)) / (1.00 - R)
ans *= 100
print("{:.20f}".format(ans))