msg_num = int(input())
word_num = map(int,input().split())

cost = 0

for i in word_num:
    price = 0.1
    if i > 60:
        price = 0.2
    cost += price

print(cost)