n = int(input())
i = 0
p = 0
while i < n:
    marks = int(input())
    if marks >= 40:
        p = p + 1;
    i = i + 1
print(p*100 / n, '% passed')
