n = int(input())
a = list(map(int, input().split()))
money = 1000
dp = a
dp[0] = 1000
for i in range(1, n):
    dp[i] = dp[i -1]
    for j in range(i -1):
        V = dp[j] / a[j]
        W = dp[j] + (a[i] -a[j])*V
        dp[i] = max(dp[i], W)
print(dp[-1])