def ip():return int(input()) def mp():return map(int, input().split()) def lmp():return list(map(int, input().split())) N = ip() R = float(input()) ans = 100 now = 100 for i in range(1, N): now = (1-R)*now ans += now print(ans)