def score(S):
	return sum(s*.8**i for i, s in enumerate(S))/5
n = int(input())
S = [int(input()) for _ in range(n)]
print(score(S))
print(sum(score(S[:i]+S[i+1:]) for i in range(n))/n)
6b7e904cc5c8d9dd77d82e991b9c41bdd03cd5a7
<mask token>

def score(S):
    return sum(s * 0.8 ** i for i, s in enumerate(S)) / 5


<mask token>

def score(S):
    return sum(s * 0.8 ** i for i, s in enumerate(S)) / 5


<mask token>
print(score(S))
print(sum(score(S[:i] + S[i + 1:]) for i in range(n)) / n)

def score(S):
    return sum(s * 0.8 ** i for i, s in enumerate(S)) / 5


n = int(input())
S = [int(input()) for _ in range(n)]
print(score(S))
print(sum(score(S[:i] + S[i + 1:]) for i in range(n)) / n)

def score(S):
	return sum(s*.8**i for i, s in enumerate(S))/5
n = int(input())
S = [int(input()) for _ in range(n)]
print(score(S))
print(sum(score(S[:i]+S[i+1:]) for i in range(n))/n)