#include <stdio.h>

float cost(int num[],int n)
{
    int i = 0;
    float money = 0;
    for(i=0;i<n;i++)
    {
        if(num[i]<= 60)
        {
            money +=0.1;
        }
        else 
        money += 0.2;
    }
    return money;
}
int main()
{
    int n;
    int num[10];//利用数组来存储短信字数个数
    scanf("%d",&n);
    getchar ();
    for(int i=0;i<n;i++)
    {
        scanf("%d",&num[i]);
    }
    float money;
    money = cost(num,n);
    printf("%0.1f",money);

    return 0;

}