import sys input = sys.stdin.readline N=int(input()) R=float(input()) ANS=100 now=100 for i in range(N-1): now*=1-R ANS+=now print(ANS)