# coding: utf-8 # Your code here! N=int(input()) R=float(input()) ans=0 money=100 for _ in range(N): ans+=money money*=(1-R) print(ans)