N = int(input()) A = list(map(int, input().split())) v = 1000 for a in A[::-1]: v = v*(1000-a)/1000 print(1000-v)