count = int(input())
numbers = list(map(int, input()))
sum = 0
for i in numbers:
sum += i
print(sum)
① count
② map(int, input())
count = int(input())
score_list = list(map(int, input().split()))
max_score = max(score_list)
sum = 0
for i in score_list:
sum += (i * 100) / max_score
avg = sum/count
print(avg)
① count
② score_list
③ sum