N = int(input()) R = float(input()) A = [100] for i in range(N-1): A.append(A[-1]*R) print(sum(A))