n = int(input()) r = float(input()) DP = [0.0 for _ in range(n)] DP[0] = 100.0 for i in range(n - 1): DP[i + 1] = (1 - r) * DP[i] print(sum(DP))