n = int(input()) ans = 1000 accum = 1000 values = list(map(int , input().split())) for t in values: t = 1000 - t accum *= t / 1000 print(ans - accum)