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