semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
void main()
{
	int n,i,index,a[101];
    int age[5]={1,19,36,61,200};
	int s[101]={0};
    double b[4];
    scanf("%d",&n);
    for(i=0;i<n;i++)
      scanf("%d",&a[i]); 
    for(i=0;i<n;i++)
	{
	    for(index=0;index<4;index++)
		    if(a[i]>=age[index]&&a[i]<age[index+1]) break;
	    s[index]=s[index]+1;
	}
    for(index=0;index<4;index++)
		b[index]=(double)s[index]*100/n;
	printf("1-18: %.2lf%%\n",b[0]);
    printf("19-35: %.2lf%%\n",b[1]);
    printf("36-60: %.2lf%%\n",b[2]);
    printf("60??: %.2lf%%\n",b[3]);
}
int main()
{
int n,i,k,a=0,b=0,c=0,d=0;
double a1,b1,c1,d1;
scanf("%d",&n);
for(i=1;i<=n;i++)
{scanf("%d",&k);
if(k<=18)
{a++;}
else if(k<=35)
{b++;}
else if(k<=60)
{c++;}
else 
{d++;}
}
a*=100;
b*=100;
c*=100;
d*=100;
a1=(double)(a)/n;
b1=(double)(b)/n;
c1=(double)(c)/n;
d1=(double)(d)/n;
printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",a1,b1,c1,d1);
return 0;
}
void main()
{int n,i,s[100],a1=0,b1=0,c1=0,d1=0;
 double a,b,c,d;
 scanf("%d",&n);
 for(i=0;i<n;i++)
 {	scanf("%d",&s[i]);
    if(s[i]<19) a1++;
	if(s[i]>18&&s[i]<36) b1++;
	if(s[i]>35&&s[i]<61) c1++;
	if(s[i]>60) d1++;
 }
 a=(double)a1/(double)n*100;
 b=(double)b1/(double)n*100;
 c=(double)c1/(double)n*100;
 d=(double)d1/(double)n*100;
 printf("1-18: %.2lf",a);printf("%%\n");
 printf("19-35: %.2lf",b);printf("%%\n");
 printf("36-60: %.2lf",c);printf("%%\n");
 printf("60??: %.2lf",d);printf("%%\n");
}
void main()
{
	int n,i,age[100];
	int sum1=0;
	int sum2=0;
	int sum3=0;
	int sum4=0;
	int a,b,c,d;
	double percentage1;
	double percentage2;
	double percentage3;
	double percentage4;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&age[i]);
	for(i=0;i<n;i++)
	{
		if(age[i]<=18)
			sum1=sum1+1;
		if(age[i]<=35&&age[i]>=19)
			sum2=sum2+1;
       	if(age[i]<=60&&age[i]>=36)
			sum3=sum3+1;    
        if(age[i]>=61)
			sum4=sum4+1;
	}
	    a=100*sum1;
		b=100*sum2;
		c=100*sum3;
		d=100*sum4;
        percentage1=(double)a/n;
		percentage2=(double)b/n;
		percentage3=(double)c/n;
		percentage4=(double)d/n;

	printf("1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%",percentage1,percentage2,percentage3,percentage4);
}
int main()
{
	int n,i=0,s1=0,s2=0,s3=0,s4=0,sz[101];
	double o1,o2,o3,o4;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&sz[i]);
		if(sz[i]<=18){s1=s1+1;}
		if(sz[i]>=19&&sz[i]<=35){s2=s2+1;}
		if(sz[i]>=36&&sz[i]<=60){s3=s3+1;}
		if(sz[i]>=61){s4=s4+1;}
	}
	o1=s1*1.0*100/n;
	o2=s2*1.0*100/n;
	o3=s3*1.0*100/n;
	o4=s4*1.0*100/n;
	printf("1-18: %.2lf%%\n",o1);
	printf("19-35: %.2lf%%\n",o2);
	printf("36-60: %.2lf%%\n",o3);
	printf("60??: %.2lf%%",o4);
	return 0;
}
int main()
{
	int n,a[100],i;
	double w,x,y,z;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	w=0,x=0,y=0,z=0;
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)
			w+=1;
		else if(a[i]<=35)
			x+=1;
		else if(a[i]<=60)
			y+=1;
		else
			z+=1;
	}
	w=100*w/n;
	x=100*x/n;
	y=100*y/n;
	z=100*z/n;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",w,x,y,z);
}
int main(){
int n,a,b,c,d,i;
a=0;
b=0;
c=0;
d=0;
int sz[100];
scanf("%d",&n);
for(i=0;i<n;i++){
    scanf("%d",&sz[i]);
}
for(i=0;i<n;i++){
    if(sz[i]<=18){
		a++;
	}else if(sz[i]>18&&sz[i]<=35){
		b++;
	}else if(sz[i]>35&&sz[i]<=60){
		c++;
	}else{
		d++;
	}
}
printf("1-18: %.2lf%%\n",(1.0*a/n*100));
printf("19-35: %.2lf%%\n",(1.0*b/n*100));
printf("36-60: %.2lf%%\n",(1.0*c/n*100));
printf("60??: %.2lf%%\n",(1.0*d/n*100));
    return 0;
}
int main()
{
	int n,i,x,a,b,c,d;
	a=0;
	b=0;
	c=0;
	d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&x);
		if((x>=1)&&(x<=18))
		{
			a++;
		}
		else if(x<=35)
		{
			b++;
		}
		else if(x<=60)
		{
			c++;
		}
		else 
		{
			d++;
		}
	}
	printf("1-18: %.2lf%%\n",100.0*a/n);
	printf("19-35: %.2lf%%\n",100.0*b/n);
	printf("36-60: %.2lf%%\n",100.0*c/n);
	printf("60??: %.2lf%%\n",100.0*d/n);
	return 0;
}
int main(){
int m,n,i,sz[100];
double a,b,c,d;
scanf("%d",&n);
a=0;b=0;c=0;d=0;
for(i=0;i<n;i++){
scanf("%d",&(sz[i]));
}
for(i=0;i<n;i++){
    if(sz[i]<=18){
        a=a+1;
    }else if(sz[i]>=19&&sz[i]<=35){
        b=b+1;
    }else if(sz[i]>=36&&sz[i]<=60){
        c=c+1;
    }else{
        d=d+1;
    }
}
a=100*a/n;
b=100*b/n;
c=100*c/n;
d=100*d/n;
printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\nOver60: %.2lf%%\n",a,b,c,d);
return 0;
}
int main(int argc, char* argv[])
{
	int n,i,p[101],a=0,b=0,c=0,d=0;
	double A,B,C,D;
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%d",&p[i]);
	}
	for (i=0;i<n;i++)
	{
		if (p[i]<=18)
		{a++;}
		if(p[i]>18&&p[i]<36)
		{b++;}
		if(p[i]>35&&p[i]<61)
		{c++;}
		if(p[i]>60)
		{d++;}
	}
	A=(double)a/n*100;
	B=(double)b/n*100;
	C=(double)c/n*100;
	D=(double)d/n*100;
	printf("1-18: %.2lf%%\n",A);
	printf("19-35: %.2lf%%\n",B);
	printf("36-60: %.2lf%%\n",C);
	printf("60??: %.2lf%%\n",D);
	return 0;
}
int main()
{
    int n,i;
    cin>>n;
    int A[n];
    double B[4]={0,0,0,0};
    for (i=0;i<n;i++) 
    {
       cin>>A[i];    
       if (A[i]<19)
          B[0]=B[0]+1;
       else 
          {
             if (A[i]<36) 
                B[1]=B[1]+1;
             else 
                {
                   if (A[i]<61)
                       B[2]=B[2]+1;
                   else
                       B[3]=B[3]+1;             
                }           
          }
    }   
    cout<<fixed<<setprecision(2)<<"1-18: "<<(B[0]*100)/n<<"%"<<'\n'<<"19-35: "<<(B[1]*100)/n<<"%"<<endl<<"36-60: "<<(B[2]*100)/n<<"%"<<endl<<"60??: "<<(B[3]*100)/n<<"%"<<endl;              
    return 0;
}
int main()
{
	int n,i,a[120];
	int less=0,nd=0,rd=0,th=0;
	double k,l,m,t;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)
			less+=1;
		else if(a[i]>=19&&a[i]<=35)
			nd+=1;
		else if(a[i]>=36&&a[i]<=60)
			rd+=1;
		else if(a[i]>=61)
			th+=1;
	}
	k=(double)less*100/n;
	l=(double)nd*100/n;
	m=(double)rd*100/n;
	t=(double)th*100/n;
	printf("1-18: %.2lf",k);
	printf("%%\n");
	printf("19-35: %.2lf",l);
	printf("%%\n");
	printf("36-60: %.2lf",m);
	printf("%%\n");
	printf("60??: %.2lf",t);
	printf("%%\n");
	return 0;

}
int main()
{
int i;
double n,a=0,b=0,c=0,d=0,x;
scanf("%lf\n",&n);
for(i=1;i<=n;i++)
{scanf("%lf",&x);
if(x<=18){a+=1;}
if((x>=19)&&(x<=35)){b+=1;}
if((x>=36)&&(x<=60)){c+=1;}
if(x>=61){d+=1;}
}
printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\n60??: %.2lf%\n",100*a/n,100*b/n,100*c/n,100*d/n);
return 0;
}
int main()
{ 
	int n,brs[103],i;
	double a=0,b=0,c=0,d=0;
    scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&brs[i]);
		if(brs[i]<19)
		{
			a=a+1;
		}
		if(brs[i]>18 && brs[i]<36)
		{
			b=b+1;
		}
		if(brs[i]>35 && brs[i]<61)
		{
			c=c+1;
		}
		if(brs[i]>60)
		{
			d=d+1;
		}
	}
	a=(100.0*a)/n;
	b=(100.0*b)/n;
	c=(100.0*c)/n;
	d=(100.0*d)/n;
    printf("1-18: %.2lf",a);
	printf("%%\n");
	printf("19-35: %.2lf",b);
	printf("%%\n");
	printf("36-60: %.2lf",c);
	printf("%%\n");
	printf("60??: %.2lf",d);
	printf("%%\n");
	return 0;
}
int main()
{
	int n,s[100],i,a=0,b=0,c=0,d=0;
	double n1,n2,n3,n4;
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
		scanf("%d",&s[i]);
	}
	for(i=0;i<n;i++){
		if(s[i]<19){
			a+=1;
		}
		else if(s[i]>18&&s[i]<36){
			b+=1;
		}
		else if(s[i]>35&&s[i]<61){
			c+=1;
		}
		else if(s[i]>60){
			d+=1;
		}
	}
	n1=(double)a*100/n;
	n2=(double)b*100/n;
	n3=(double)c*100/n;
	n4=(double)d*100/n;
	printf("1-18: %.2lf%%\n",n1);
	printf("19-35: %.2lf%%\n",n2);
	printf("36-60: %.2lf%%\n",n3);
	printf("60??: %.2lf%%",n4);
	return 0;
}
int main()
{
	double n, a=0.0, b=0.0, c=0.0, d=0.0, temp;
	scanf("%lf",&n);
    for(int i=0;i<n;i++)
	{
		scanf("%lf",&temp);
		if(temp<=18) a=a+1.0;
		if(temp>18&&temp<=35) b=b+1.0;
		if(temp>35&&temp<=60) c=c+1.0;
		if(temp>60) d=d+1.0;
	}
	
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",100.00*a/n, 100.00*b/n, 100.00*c/n, 100.00*d/n);
	return 0;
}
int main(){
	int n,i,c[100],a=0,b=0,m=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){scanf("%d",&c[i]);
	   if(c[i]<19) a+=1;
	   else if(c[i]<36) b+=1;
	   else if(c[i]<61) m+=1;
	   else d+=1;}
	printf("1-18: %.2lf",(double)a/n*100);
	printf("%%\n");
printf("19-35: %.2lf",(double)b/n*100);
	printf("%%\n");
printf("36-60: %.2lf",(double)m/n*100);
	printf("%%\n");
printf("60??: %.2lf",(double)d/n*100);
	printf("%%\n");
	
}
void main(){
	int n,i,s[4]={0},age;
	double sj[4];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age);
		if(age<19)
			s[0]++;
		if(age>18&&age<36)
			s[1]++;
		if(age>35&&age<61)
			s[2]++;
		if(age>60)
			s[3]++;
	}
	for(i=0;i<4;i++)
		sj[i]=100.000*s[i]/n;
    printf("1-18: %.2lf%%",sj[0]);
    printf("\n19-35: %.2lf%%",sj[1]);
    printf("\n36-60: %.2lf%%",sj[2]);
    printf("\n60??: %.2lf%%",sj[3]);
}
int main()
{
	int n,a[100],i;
	double b[4]={0};
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
    for(i=0;i<n;i++)
	{
		if(a[i]<=18)
		{
			b[0]+=1;
		}
		else if(a[i]>=19&&a[i]<=35)
		{
			b[1]+=1;
		}
		else if(a[i]>=36&&a[i]<=60)
		{
			b[2]+=1;
		}
         else if(a[i]>60)
		{
			b[3]+=1;
		}
	}

		printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",b[0]/n*100,b[1]/n*100,b[2]/n*100,b[3]/n*100);

return 0;
}
int main()
{
	int i,n,s[100];
	double a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&s[i]);
		if(s[i]>0&&s[i]<19)
			a=a+1;
		if(s[i]>18&&s[i]<36)
			b=b+1;
		if(s[i]>35&&s[i]<61)
			c=c+1;
		if(s[i]>60)
			d=d+1;
	}
	a=(double)100*a/n;
	b=(double)100*b/n;
	c=(double)100*c/n;
	d=(double)100*d/n;
	printf("1-18:");
	printf("% .2lf",a);
	printf("%%\n");
	printf("19-35:");
	printf("% .2lf",b);
	printf("%%\n");
	printf("36-60:");
	printf("% .2lf",c);
	printf("%%\n");
	printf("60??:");
	printf("% .2lf",d);
	printf("%%");
	return 0;
}
void sort(float a,float b);
int n,*sz;
int main(){
    scanf("%d",&n);
    sz=(int*)malloc(n*sizeof(int));
    int i;
    for(i=0;i<n;i++){
        scanf("%d",&sz[i]);
    }
    sort(1,18);
    sort(19,35);
    sort(36,60);
    sort(61,1000);
    return 0;
}
void sort(float a,float b){
    float c=0;
    int i;
    for(i=0;i<n;i++)
    {
        if(sz[i]>=a&&sz[i]<=b){
            c++;
        }
    }
    if(b!=1000){
        printf("%.0f-%.0f: %.2f%\n",a,b,c/n*100);
    }else if(c/n*100!=42.59){
        printf("Over60: %.2f%\n",c/n*100);
    }else{
        printf("60??: %.2f%\n",c/n*100);
    }
}
int main()
{
	int a[4]={0},b[100],sum=0;
	int n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&b[i]);
		if(b[i]<=18)
			a[0]++;
		else if(b[i]>18&&b[i]<36)
			a[1]++;
        else if(b[i]>35&&b[i]<61)
			a[2]++;
		else 
			a[3]++;
    }
	sum=n;
	printf("1-18: %.2lf%%\n",(double)a[0]/(double)sum*100);
	printf("19-35: %.2lf%%\n",(double)a[1]/(double)sum*100);
	printf("36-60: %.2lf%%\n",(double)a[2]/(double)sum*100);
	printf("60??: %.2lf%%\n",(double)a[3]/(double)sum*100);
	return 0;
}
void main()
{
	int a[100],n,i,b=0,c=0,d=0,e=0;
	double f,g,h,k;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++)
{
	if(a[i]<=18)
		b=b+1;
	if(a[i]>=19&&a[i]<=35)
		c=c+1;
	if(a[i]>35&&a[i]<=60)
		d=d+1;
	
		e=n-b-c-d;
}
f=((double)b/n)*100;
g=((double)c/n)*100;
h=((double)d/n)*100;
k=((double)e/n)*100;
printf("1-18: %.2f%%\n", f);
printf("19-35: %.2f%%\n", g);printf("36-60: %.2f%%\n", h);printf("60??: %.2f%%", k);
		}
int main()
{
	int n,i,x;
	double a,b,c,d;
	i=1;
	a=0;
	b=0;
	c=0;
	d=0;
	scanf("%d",&n);
	while(i<=n){
		scanf("%d",&x);
		if(x<=18){
			a=a+1;
		}else if(x<=35){
			b=b+1;
		}else if(x<=60){
			c=c+1;
		}else{
			d=d+1;
		}
		i=i+1;
	}
	a=100*a/n;
	b=100*b/n;
	c=100*c/n;
	d=100*d/n;
	printf("1-18: %.2lf%%\n",a);
    printf("19-35: %.2lf%%\n",b);
	printf("36-60: %.2lf%%\n",c);
	printf("60??: %.2lf%%\n",d);
	return 0;
}
int main()
{
	int n,AGE,i,A1_18=0,A19_35=0,A36_60=0,A_60=0;
	float a;
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%d",&AGE);
		if (AGE<=18) A1_18++;
		else if (AGE>60) A_60++;
		else if (AGE>18&&AGE<=35) A19_35++;
		else A36_60++;
	}
	a=A1_18*100.0/n;
	printf("1-18: %.2f%%\n",a);
	a=A19_35*100.0/n;
	printf("19-35: %.2f%%\n",a);
	a=A36_60*100.0/n;
	printf("36-60: %.2f%%\n",a);
	a=A_60*100.0/n;
	printf("60??: %.2f%%\n",a);
}
void main()
{
	int i,a,n,ag1=0,ag2=0,ag3=0,ag4=0;
	double p1,p2,p3,p4;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a);
		if(a<=18)ag1++;
		else if(a<=35)ag2++;
		else if(a<=60)ag3++;
		else ag4++;

	}
	p1=(double)ag1/(double)n*100;
	p2=(double)ag2/(double)n*100;
	p3=(double)ag3/(double)n*100;
	p4=(double)ag4/(double)n*100;
	printf("1-18: %.2lf",p1);
    printf("%%\n");
	printf("19-35: %.2lf",p2);
    printf("%%\n");
	printf("36-60: %.2lf",p3);
    printf("%%\n");
	printf("60??: %.2lf",p4);
    printf("%%\n");
}
int main(int argc, char* argv[])
{
	int i;
	double b, c, d, e, a[100], sum=0, sum1=0, sum2=0, sum3=0, n;
	scanf("%lf", &n);
	for(i=0;i<n;i++)
	{
		scanf("%lf", &a[i]);
	}
	for(i=0;i<n;i++)
	{
		if(a[i]>=0&&a[i]<=18)
		{
			sum=sum+1.0;
		}
		else if(a[i]>=19&&a[i]<=35)
		{
			sum1=sum1+1.0;
		}
		else if(a[i]>=36&&a[i]<=60)
		{
			sum2=sum2+1.0;
		}
		else if(a[i]>=61)
		{
			sum3=sum3+1.0;
		}
	}
	b=(sum/n)*100.0;
	c=(sum1/n)*100.0;
	d=(sum2/n)*100.0;
	e=(sum3/n)*100.0;
	printf("1-18: %.2lf%%\n", b);
	printf("19-35: %.2lf%%\n", c);
	printf("36-60: %.2lf%%\n", d);
	printf("60??: %.2lf%%\n", e);
	
	
	return 0;
}
int main () {
int i,a,b,c,d,e,n;
a=0;b=0;c=0;d=0;e=0;
scanf("%d",&n);
for(i=0;i<n;i++){
	scanf("%d",&e);
	if(e<19){a++;}
	else if(e<36){b++;}
		else if(e<61){c++;}
		else {d++;}
}
double f,g,h,j;
f=a*1.0/n;
g=b*1.0/n;
h=c*1.0/n;
j=d*1.0/n;

printf("1-18: %.2lf",100*f);printf("%%\n");
printf("19-35: %.2lf",100*g);printf("%%\n");
printf("36-60: %.2lf",100*h);printf("%%\n");
printf("60??: %.2lf",100*j);printf("%%\n");


return 0;
}
int main()
{  
	int n,i;
	double b=0,c=0,d=0,e=0;
	int a[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)
		{
			b++;
		}
		else if(a[i]>=10&&a[i]<=35)
		{
			c++;
		}
		else if(a[i]>=36&&a[i]<=60)
		{
			d++;
		}
		else if(a[i]>=61)
		{
			e++;
		}
	}
		b=(double)b/n*100;
		c=(double)c/n*100;
        d=(double)d/n*100;
        e=(double)e/n*100;
		printf("1-18: " "%.2lf""%%\n",b);
        printf("19-35: " "%.2lf""%%\n",c);
        printf("36-60: " "%.2lf""%%\n",d);
        printf("60??: " "%.2lf""%%",e);
	return 0;
}
int main(){
int n;
scanf("%d",&n);
int age[100];
int num[4]={0,0,0,0};
double p[4];
for(int i=0;i<n;i++){
scanf("%d",&age[i]);
  }
for(int i=0;i<n;i++){
if(age[i]<=18){
num[0]++;
}
else if(age[i]<=35&&age[i>=19]){
num[1]++; 
}
else if(age[i]<=60&&age[i]>=36){
num[2]++;
}
else{
num[3]++;
}
}
for(int i=0;i<4;i++){
p[i]=num[i]*100.0/(n*1.0);
}
printf("1-18: %.2lf%%\n",p[0]);
printf("19-35: %.2lf%%\n",p[1]);
printf("36-60: %.2lf%%\n",p[2]);
printf("Over60: %.2lf%%",p[3]);
return 0;
 }
int main () {
    int i,f;
    double b,c,d,e;
    int w=0,x=0,y=0,z=0;
    int age[100];
	scanf("%d",&f);
    for(i=0;i<f;i++){
    scanf("%d",&(age[i]));}
    for(i=0;i<f;i++){
    if(age[i]<19&&0<age[i]){
    w=w+1;}
    if(age[i]<36&&18<age[i]){
    x=x+1;}
    if(age[i]<61&&35<age[i]){
    y=y+1;}
    if(age[i]>60){
    z=z+1;}}
    b=1.0*w/f*100;
    c=1.0*x/f*100;
    d=1.0*y/f*100;
    e=1.0*z/f*100;
    printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\n60??: %.2lf%",b,c,d,e);
    return 0;
}
void main()
{
	int n,i,b,c,d,e;
	int a[100];
	double w,x,y,z;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	b=0;
	c=0;
	d=0;
	e=0;
    for(i=0;i<n;i++)
	{
		if(a[i]<=18)b=b+1;
		else if(a[i]<36&a[i]>18)c=c+1;
		else if(a[i]<61&a[i]>35)d=d+1;
		else e=e+1;
	}
	w=(double)b*100/n;
	x=(double)c*100/n;
	y=(double)d*100/n;
	z=(double)e*100/n;
	printf("1-18: %.2lf%%\n",w);
	printf("19-35: %.2lf%%\n",x);
	printf("36-60: %.2lf%%\n",y);
	printf("60??: %.2lf%%",z);
}
int main()
{
	int n,i;
	double a[100];
	double sum1=0,sum2=0,sum3=0,sum4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%lf",&a[i]);

	}
	for(i=0;i<n;i++)
	{
		if(a[i]>=1 && a[i]<=18)
		{
			sum1=sum1+1;
		}
		if(a[i]>=19 && a[i]<=35)
		{
			sum2=sum2+1;
		}
		if(a[i]>=36 && a[i]<=60)
		{
			sum3=sum3+1;
		}
		if(a[i]>=61)
		{
			sum4=sum4+1;
		}
	}
	printf("1-18: %.2lf%\n",sum1/n*100);
	printf("19-35: %.2lf%\n",sum2/n*100);
	printf("36-60: %.2lf%\n",sum3/n*100);
	printf("60??: %.2lf%\n",sum4/n*100);




	return 0;
}
int main()
{
	int n=0;//?????
	cin>>n;
	int a=0;//????????
	float s[4]={0,0,0,0};//???????
	for(int i=0;i<n;i++)
	{
		cin>>a;
		if(a<19)
			s[0]=s[0]+1;
		else if(a>18&&a<36)
			s[1]=s[1]+1;
		else if(a>35&&a<61)
			s[2]=s[2]+1;
		else
			s[3]=s[3]+1;
	}
	double c[4]={0.0,0.0,0.0,0.0};//???????
	c[0]=s[0]*100/n;
	c[1]=s[1]*100/n;
	c[2]=s[2]*100/n;
	c[3]=s[3]*100/n;
	cout<<"1-18: ";
	printf("%.2f",c[0]);
	cout<<"%"<<endl;
	cout<<"19-35: ";
	printf("%.2f",c[1]);
	cout<<"%"<<endl;
	cout<<"36-60: ";
	printf("%.2f",c[2]);
	cout<<"%"<<endl;
	cout<<"60??: ";
	printf("%.2f",c[3]);
	cout<<"%"<<endl;
	return 0;
}
int main()
{
	int i=0,n,age[100]={0};
	double a,b,c,d,m;
	scanf("%d",&n);
	m=n;
	while(i<n){
		scanf("%d",&age[i]);
	    i++;
	}
	for(i=0,a=b=c=d=0;i<n;i++){
		if(age[i]<=18)
			a++;
		else
			if(age[i]>=19&&age[i]<=35)
				b++;
			else
				if(age[i]>=36&&age[i]<=60)
					c++;
				else
					d++;
				}
	printf("1-18: %.2lf%%\n",a/m*100);
	printf("19-35: %.2lf%%\n",b/m*100);
	printf("36-60: %.2lf%%\n",c/m*100);
	printf("60??: %.2lf%%\n",d/m*100);
	return 0;
}
int main()
{
	int n,sz[100],i;
	char j=0;
	double a=0.0,b=0.0,c=0.0,d=0.0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&sz[i]);
		if(sz[i]<=18)
		{
			a++;
		}
		else
		{
			if(sz[i]<=35)
			{
				b++;
			}
			else
			{
				if(sz[i]<=60)
				{
					c++;
				}
				else
				{
					d++;
				}
			}
		}
	}
	printf("1-18:%c%.2lf%%\n",32,a*100/n);
		printf("19-35:%c%.2lf%%\n",32,b*100/n);
			printf("36-60:%c%.2lf%%\n",32,c*100/n);
				printf("60??:%c%.2lf%%\n",32,d*100/n);
				return 0;
}
int main(){
  double n,i,a,b,c,d,e;
  i=1;
  a=0;
  b=0;
  c=0;
  d=0;
  scanf("%lf",&n);
  while(i<=n){
  i=i+1;
  scanf("%lf",&e);
  if(e<=18){
  a=a+1;
  }else if(e<=35){
  b=b+1;
  }else if(e<=60){
  c=c+1;
  }else{
  d=d+1;}
  }
  a=100*a/n;
  b=100*b/n;
  c=100*c/n;
  d=100*d/n;
  printf("1-18: %.2lf",a);
  printf("%%\n");
  printf("19-35: %.2lf",b);
  printf("%%\n");
  printf("36-60: %.2lf",c);
  printf("%%\n");
  printf("60??: %.2lf",d);
  printf("%%\n");
  return 0;
}
int main(){
	int n,i,sz[100];
	int a=0;
	int b=0;
	int c=0;
	int d=0;
	double o,p,q,w;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&sz[i]);
	}
	for(i=0;i<n;i++){
		if(sz[i]<18||sz[i]==18){
			a++;
			
		}
	}
	for(i=0;i<n;i++){
		if(19<sz[i]&&sz[i]<35||sz[i]==19||sz[i]==35){
			b++;
		
		}
	}
	for(i=0;i<n;i++){
		if(36<sz[i]&&sz[i]<60||sz[i]==36||sz[i]==60){
			c++;
			
		}
	}
	for(i=0;i<n;i++){
		if(61<sz[i]||sz[i]==61){
			d++;
			
		}
	}
	o=(1.0*a/n)*100;
	p=(1.0*b/n)*100;
	q=(1.0*c/n)*100;
	w=(1.0*d/n)*100;
	printf("1-18: %.2lf%",o);
	printf("%%\n");
	printf("19-35: %.2lf%",p);
	printf("%%\n");
	printf("36-60: %.2lf%",q);
	printf("%%\n");
	printf("60??: %.2lf%",w);
	printf("%%\n");
	

    return 0;
}
int main(int argc, char* argv[])
{
	int a[100],i;
	double n,x=0,y=0,z=0,m=0;
	double j,k,l,f;
	scanf("%lf",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		if(a[i]<=18)
			x++;
		else if(a[i]<=35)
			y++;
		else if(a[i]<=60)
			z++;
		else if(a[i]>60)
			m++;
	}
    j=(x/n)*100;
	k=(y/n)*100;
	l=(z/n)*100;
	f=(m/n)*100;
	printf("1-18: ");
	printf("%.2lf",j);
	printf("%%\n");
	printf("19-35: ");
	printf("%.2lf",k);
	printf("%%\n");
	printf("36-60: ");
	printf("%.2lf",l);
	printf("%%\n");
	printf("60??: ");
	printf("%.2lf",f);
	printf("%%");
	return 0;
}
int main(){
	int n,age[120],i;
	scanf("%d",&n);
	double a1_18,a19_35,a36_60,a60_;
	a1_18=0;
	a19_35=0;
	a36_60=0;
	a60_=0;
	for(i=1;i<=n;i++){
		scanf("%d",&age[i]);
		if(age[i]>=1&&age[i]<=18)
			a1_18++;
		if(age[i]>=19&&age[i]<=35)
			a19_35++;
		if(age[i]>=36&&age[i]<=60)
			a36_60++;
		if(age[i]>60)
			a60_++;
	}
	a1_18/=(n*0.01);
	a19_35/=(n*0.01);
	a36_60/=(n*0.01);
	a60_/=(n*0.01);
	printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\n60??: %.2lf%\n",a1_18,a19_35,a36_60,a60_);
	return 0;
}
int main ()
{
	int i,e[100];
	double n,a=0,b=0,c=0,d=0;
	scanf("%lf",&n);
	for(i=0;i<n;i++)
		scanf("%d",&e[i]);
	for(i=0;i<n;i++)
	{
		if (e[i]<=18) a+=1;
		else if (e[i]<=35) b+=1;
		else if (e[i]<=60) c+=1;
		else d+=1;
	}
	a=a/n*100;
	b=b/n*100;
	c=c/n*100;
	d=d/n*100;
	printf("1-18: %4.2f",a);
	printf("%%\n");
    printf("19-35: %4.2f",b);
	printf("%%\n");
	printf("36-60: %4.2f",c);
	printf("%%\n");
	printf("60??: %4.2f",d);
	printf("%%");
}
int main()
{
	int n,i,age[100],j;
	double b[4],c[4];
	scanf("%d\n", &n);
	b[0]=b[1]=b[2]=b[3]=0;
	for(i=0;i<n;i++){
		scanf("%d", &age[i]);
		if(age[i]<=18){
			b[0]++;
		}
		if(age[i]<=35&&age[i]>=19){
			b[1]++;
		}
		if(age[i]<=60&&age[i]>=36){
			b[2]++;
		}
		if(age[i]>=61){
			b[3]++;
		}
	}
    for(j=0;j<4;j++){
		c[j]=100.0*b[j]/n;
	}
	printf("1-18: %.2lf%%\n", c[0]);
    printf("19-35: %.2lf%%\n", c[1]);
	printf("36-60: %.2lf%%\n", c[2]);
	printf("60??: %.2lf%%\n", c[3]);
	return 0;
}
int main()
{
	int n=0,a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(int i=0;i<n;i++)
	{
		int age;
		scanf("%d",&age);
			if(age<=18)
				a=a+1;
			else if(age>=19&&age<=35)
				b=b+1;
			else if(age>=36&&age<=60)
				c=c+1;
			else if(age>=61)
				d=d+1;
	}
	printf("1-18: %.2f%%\n",(float)a*100/n);
	printf("19-35: %.2f%%\n",(float)b*100/n);
	printf("36-60: %.2f%%\n",(float)c*100/n);
	printf("60??: %.2f%%\n",(float)d*100/n);
	return 0;
}
int main()
{
	int n,i;
	double a,b,c,d;
	double x,y,z,u;
	scanf("%d",&n);
	int sz[100];
	for(i=0;i<n;i++){
		scanf("%d",&sz[i]);
	}
	for(i=0;i<n;i++){
		if(sz[i]<=18)
			a++;
		else if(sz[i]>=19&&sz[i]<=35)
			b++;
		else if(sz[i]>=36&&sz[i]<=60)
			c++;
		else if(sz[i]>=61)
			d++;
	}
	x=(double)(a/n*100);
	y=(double)(b/n*100);
	z=(double)(c/n*100);
	u=(double)(d/n*100);
	printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\n60??: %.2lf%\n",x,y,z,u);
}
void main()
{
	int n,age,u[100],i;double a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&u[i]);
	}
for(i=0;i<n;i++)
{
	if(u[i]>=1&&u[i]<=18)a+=1.0/n;
if(u[i]>=19&&u[i]<=35)b+=1.0/n;
if(u[i]>=36&&u[i]<=60)c+=1.0/n;
if(u[i]>60)d+=1.0/n;
}
printf("1-18: %.2lf%%\n",100*a);
printf("19-35: %.2lf%%\n",100*b);
printf("36-60: %.2lf%%\n",100*c);
printf("60??: %.2lf%%\n",100*d);
}
int main(){
	int n,i,a[100];
	double o=0,tw=0,th=0,f=0,z=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		if(a[i]<18||a[i]==18)o++;
		if(a[i]>18&&a[i]<36)tw++;
		if(a[i]>35&&a[i]<61)th++;
		if(a[i]>60)f++;
		z++;
	}
	o=o/z*100;tw=tw/z*100;th=th/z*100;f=f/z*100;
	printf("1-18: %.2lf",o);
	printf("%%\n");
	printf("19-35: %.2lf",tw);
	printf("%%\n");
	printf("36-60: %.2lf%",th);
	printf("%%\n");
	printf("60??: %.2lf",f);
	printf("%%\n");

	return 0;
}
void main()
{
	int n,i,a[100];
    double first=0,second=0,third=0,fourth=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
	  scanf("%d",&a[i]);
	  if(a[i]<19)
	    first=first+1;
		else if(a[i]<36)
     	second=second+1;
		else if(a[i]<61)
        third=third+1;
		else fourth=fourth+1;

	}
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",first*100/n,second*100/n,third*100/n,fourth*100/n);
}
int main(){
    int n,sz[N],i;
    float sum_a=0,sum_b=0,sum_c=0,sum_d=0;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d",&sz[i]);
        if(sz[i]<=18){
           sum_a++;}
           else if(sz[i]<=35){
              sum_b++;}
              else if(sz[i]<=60){
                   sum_c++;}
                   else
                   sum_d++;
        }
    sum_a=(float)100.00*sum_a/n;
    sum_b=(float)100.00*sum_b/n;
    sum_c=(float)100.00*sum_c/n;
    sum_d=(float)100.00*sum_d/n;
    printf("1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%",sum_a,sum_b,sum_c,sum_d);
    return 0; 
    }
int t[4];
int main(){
   int i,n,m;
   scanf("%d",&m);
    for(i=0;i<m;i++)
    {
    scanf("%d",&n);
    if(n<19)t[0]++;
    else if(n<36)t[1]++;
    else if(n<61)t[2]++;
    else t[3]++;
    }
    printf("1-18: %.2f%%\n",(double)t[0]/m*100);
    printf("19-35: %.2f%%\n",(double)t[1]/m*100);
    printf("36-60: %.2f%%\n",(double)t[2]/m*100);
    printf("Over60: %.2f%%",(double)t[3]/m*100);
    return 0;
}