//变量类型的问题要注意
#include <stdio.h>
#include<iostream>using namespace std;
int a[110];
int main()
{
int n,i;
int sum1=0,sum2=0,sum3=0,sum4=0;
scanf("%d",&n);
for(i=1; i<=n;i++)
{
scanf("%d",&a[i]);
if(a[i]<=18) sum1++;
else if (a[i]>=19&&a[i]<=35) sum2++;
else if (a[i]>=36&&a[i]<=60) sum3++;
else sum4++;
}
printf("%.2lf%%\n%.2lf%%\n%.2lf%%\n%.2lf%%\n",sum1*1.0*100/n,sum2*1.0*100/n,sum3*1.0*100/n,sum4*1.0*100/n);
return 0;
}