n = int(input())
scores = [int(x) for x in input().split()]
fix_scores = []
for i in range(n):
    fix_score = scores[i] / max(scores) * 100
    fix_scores.append(fix_score)
    fix_average = sum(fix_scores) / n
print(float(fix_average))

810e7fc3c7fead9bee6d9f20ffd3bde32a774940
<mask token>

<mask token>
for i in range(n):
    fix_score = scores[i] / max(scores) * 100
    fix_scores.append(fix_score)
    fix_average = sum(fix_scores) / n
print(float(fix_average))

n = int(input())
scores = [int(x) for x in input().split()]
fix_scores = []
for i in range(n):
    fix_score = scores[i] / max(scores) * 100
    fix_scores.append(fix_score)
    fix_average = sum(fix_scores) / n
print(float(fix_average))
