N = int(input()) A = list(map(int,input().split())) V = 1 # 先頭の馬の速度の何倍の速度か X = [(1000-a)/1000 for a in A] for x in X: V *= x print(1000-1000*V)