N = int(input()) A = [int(a) for a in input().split()] s = 1.0 for i in range(N - 1): s *= 1000 / (1000 - A[i]) print(1000 - 1000 / s)