n = int(input()) r = float(input()) saving = 100 deposit = 100 for i in range(n-1): saving = saving * (1 - r) deposit += saving print(deposit)