# http://codeforces.com/problemset/problem/200/B

n = int(input())
sum = 0.0

inputs = input().split()

for i in inputs:
    sum = sum + int(i)
    
print(sum / n)
fb67d6c81349439d16bc11c03eeec0562bec0b67
<mask token>

<mask token>
for i in inputs:
    sum = sum + int(i)
print(sum / n)

n = int(input())
sum = 0.0
inputs = input().split()
for i in inputs:
    sum = sum + int(i)
print(sum / n)

# http://codeforces.com/problemset/problem/200/B

n = int(input())
sum = 0.0

inputs = input().split()

for i in inputs:
    sum = sum + int(i)
    
print(sum / n)