n = int(input()) s = 1 for x in map(int, input().split()): s *= (1000 - x) / 1000 ans = 1000 * (1 - s) print(f'{ans:.10f}')