#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    double result = 0;
    int str[10000];
    for (int i = 0; i < n; i++)
    {
        cin >> str[i];
    }
    for (int i = 0; i < n; i++)
    {
        if (str[i] <= 60)
        {
            result += 0.1;
        }
        else if (str[i] > 60)
        {
            result += 0.2;
        }
    }
    cout << result << endl;
}