N = int(input()) R = float(input()) ans = (1.00 - pow(R, N)) / (1.00 - R) ans *= 100 print("{:.20f}".format(ans))