#include <stdio.h>

int main() {
    int n = 0;//发送短信的条数
    scanf("%d", &n);
    int arr[n];//c99支持
    int i = 0;
    for (i = 0; i < n; i++)//遍历输入
    {
        scanf("%d ", &arr[i]);
    }
    float sum = 0;
    for (i = 0; i < n; i++)//遍历求和
    {
        float charge = 0.1;
        if (arr[i] > 60)
        {
            charge = 0.2;
        }
        sum += charge;
    }
    printf("%.1f\n", sum);
    return 0;
}