import decimal N = int(input()) R = decimal.Decimal(input()) beef=decimal.Decimal('100') ans = 0 for _ in range(N): ans+=beef beef=beef*(1-R) print(ans)