N = int(input()) R = float(input()) ans = 100 tmp = 100 for i in range(N-1): tmp = tmp*(1-R) ans += tmp print(ans)