N = int(input())
R = float(input())

ans = 100
next = 100
for i in range(N-1):
    next = next * (1-R)
    ans += next
print(ans)