N=int(input())
R=float(input())
cur=100
ans=cur
for _ in range(1,N):
    cur*=1-R
    ans+=cur
print(ans)