#include<bits/stdc++.h>
using namespace std;
int bd[101]={0};double q1,w1,e1,r1;
int main()
{
int a;
cin>>a;
for(int i=0;i<a;i++)
{
cin>>bd[i];
}
for(int i=0;i<a;i++)
{
if(bd[i]>=0 and bd[i]<=18)
{
q1++;
}
else if(bd[i]>=19 and bd[i]<=35)
{
w1++;
}
else if(bd[i]>=36 and bd[i]<=60)
{
e1++;
}
else if(bd[i]>=61)
{
r1++;
}
}
cout<<(q1*1.0)/a*100<<'%'<<endl<<(w1*1.0)/a*100<<'%'<<endl<<(e1*1.0)/a*100<<'%'<<endl<<(r1*1.0)/a*100<<'%';
}