n=int(input()) m=list(map(int,input().split())) money=0 for j in range(n): if m[j]<=60: money+=0.1 else: money+=0.2 print(money)