#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int age;
int a[4] = {};
for (int i = 0; i < n; i++)
{
cin >> age;
if (age < 19)
a[0]++;
else if (age < 36)
a[1]++;
else if (age < 61)
a[2]++;
else
a[3]++;
}
double f[4] = {100.0 * a[0] / n, 100.0 * a[1] / n, 100.0 * a[2] / n, 100.0 * a[3] / n};
for (int i = 0; i < 4; i++)
printf("%.2lf%%\n", f[i]);
return 0;
}