#include <stdio.h>

float PhoneBill(int num)
{
    if (num > 60)
    {
        return 0.2;
    }
    return 0.1;
}
int main() {
    int num = 0;
    while (scanf("%d",&num) != EOF) 
    {
        float total = 0;
        for (int i = 0; i<num; i++)
        {
            int text = 0;
            scanf("%d",&text);
            total += PhoneBill(text);

        }

        printf("%.1f",total);
    }
    return 0;
}