int main()
{
    int n = 0;
    scanf("%d",&n);
    int i = 0;
    int num =0;
    int count1,count2;
    float sum = 0.0;
    for(i=0;i<n;i++)
    {
        //输入n条短信的字符
        scanf("%d",&num);
        //判断字数的多少
        if(num<=60)
        {
            count1++;
        }
        else
            count2++;
    }
    //计算总价格
    sum = count1*0.1+count2*0.2;
    printf("%.1f\n",sum);
    return 0;
}