semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(){
    int i=1;
    double n,x;
    double a,b,c,d,e,f,g,h;
    scanf("%lf",&n);
    a=0;
    b=0;
    c=0;
    d=0;
    while(i<=n){
        scanf("%lf",&x);
        if(x<=18){
        a++;i++;}
        else if(x>=19&&x<=35){
            b++;i++;
        }else if(x>=36&&x<=60){
            c++;i++;
        }else if(x>60){
            d++;i++;
        }
    }
     e=100*a/n;
     f=100*b/n;
     g=100*c/n;
     h=100*d/n;
     printf("1-18: %.2lf%%\n",e);
     printf("19-35: %.2lf%%\n",f);
     printf("36-60: %.2lf%%\n",g);
     printf("Over60: %.2lf%%\n",h);
     return 0;
}
int main()
{
	int n,i,a=0,b=0,c=0,d=0,sum=0,y;
	double q=0,w=0,e=0,r=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		
		scanf("%d",&y);
		if((y>=1)&&(y<=18))
		{
			a+=1;
		}
		else if((y>=19)&&(y<=35))
		{
			b+=1;
		}
		else if((y>=36)&&(y<=60))
		{
			c+=1;
		}
		else if(y>60)
		{
			d+=1;
		}
	   sum=a+b+c+d;
	   q=(double)a/sum*100;
	   w=(double)b/sum*100;
	   e=(double)c/sum*100;
	   r=(double)d/sum*100;	
	}
	
	
	printf("1-18: %.2lf%%\n",q);
    printf("19-35: %.2lf%%\n",w);
    printf("36-60: %.2lf%%\n",e);
    printf("60??: %.2lf%%\n",r);
	return 0;




}
int main(){
	int a,b,i;
	int c=0;
	int d=0;
	int e=0;
	int	f=0;
	scanf("%d",&a);
	for(i=1;i<=a;i++)
    {scanf("%d",&b);
    if(b<=18){c++;
	}else if(b<=35){d++;}
	else if(b<=60){e++;}
	else{f++;}
	}
printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\n60??: %.2lf%\n",
		1.0*c/a*100,
		1.0*d/a*100,
		1.0*e/a*100,
		1.0*f/a*100);
return 0;
}
int main()
{
	double n , i , age ;
	double a = 0 , b = 0  , c = 0 , d = 0 ;
	cin >> n ;
	for ( i = 0 ; i < n ; i++ )
	{
		cin >> age ;
		if ( age <= 18 )
		{
			a++ ;
			continue ;
		}
		if ( age > 18 && age <= 35 )
		{
			b++ ;
			continue ;
		}
		if ( age > 35 && age <=60 )
		{
			c++ ;
			continue ;
		}
		if ( age > 60 )
		{
			d++ ;
			continue ;
		}
	}
	cout << "1-18: " << fixed << setprecision(2) << a/n * 100  << "%" << endl ;
	cout << "19-35: " << fixed << setprecision(2) << b/n * 100  << "%" <<  endl ;
	cout << "36-60: " << fixed << setprecision(2) << c/n * 100  << "%" <<  endl ;
	cout << "60??: " << fixed << setprecision(2) << d/n * 100  << "%" <<  endl ;
	return 0 ;
}
void main(){
	double n,a,i,c1=0.0,c2=0.0,c3=0.0,c4=0.0;
	scanf("%lf",&n);
	for(i=0;i<n;i++){
		scanf("%lf",&a);
		if(a<=18){
			c1=c1+1;
			continue;
		}
		else if(a<36){
			c2=c2+1;
			continue;
		}
		else if(a<61){
			c3=c3+1;
			continue;
		}
		else{
			c4=c4+1;
			continue;
		}
	}
	printf("1-18: %.2lf%%\n",c1/n*100);
	printf("19-35: %.2lf%%\n",c2/n*100);
	printf("36-60: %.2lf%%\n",c3/n*100);
	printf("60??: %.2lf%%\n",c4/n*100);
}
void main()
{
	int age[100];
	int i;
	double a=0,b=0,c=0,d=0,n;
	scanf("%lf",&n);
	for(i=0;i<n;i++)
		scanf("%d",&age[i]);
	for(i=0;i<n;i++)
	{
		if(age[i]<=18)
			a+=1;
		else if(age[i]>=19&&age[i]<=35)
			b+=1;
		else if(age[i]>=36&&age[i]<=60)
			c+=1;
		else
			d+=1;

	}
	printf("1-18: %.2lf%%\n",a/n*100);
	printf("19-35: %.2lf%%\n",b/n*100);
	printf("36-60: %.2lf%%\n",c/n*100);
	printf("60??: %.2lf%%",d/n*100);
}
int main(){
	int n,a=0,b=0,c=0,d=0;
	int x[N];
	int i;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&x[i]);
	}
	for(i=0;i<n;i++){
		if(x[i]<=18){
			a++;
		}else if(x[i]>=19&&x[i]<=35){
			b++;
		}else if(x[i]>=36&&x[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,sz[100],a=0,b=0,c=0,d=0,i;
	double p,q,r,s,e1,e2,e3,e4;
	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++;
		}
	}
	p=a;
	q=b;
	r=c;
	s=d;
	e1=p/n;
	e2=q/n;
	e3=r/n;
	e4=s/n;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",e1*100,e2*100,e3*100,e4*100);
	return 0;
}
int main(){
    int n,a,i;
    double b=0,c=0,d=0,e=0;
    double h,p,j,k;
    scanf("%d",&n);
    for(i=1;i<=n;i++){
        scanf("%d",&a);
        if(a<=18){
            b+=1;
        }else if(19<=a&&a<=35){
            c+=1;
        }else if(36<=a&&a<=60){
            d+=1;
        }else {
            e+=1;
        }
    } 
    h=100.0*b/n;
    p=100.0*c/n;
    j=100.0*d/n;
    k=100.0*e/n;
    printf("1-18: %.2lf%%\n",h);
    printf("19-35: %.2lf%%\n",p);
    printf("36-60: %.2lf%%\n",j);
    printf("Over60: %.2lf%%\n",k);
    return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int *a,i,*p,u,b,c,d;
	u=b=c=d=0;
	a=(int *)malloc(n*sizeof(int));
	for(i=0;i<n;i++)
		scanf("%d",a+i);
	p=a;
	for(i=0;i<n;i++)
	{
		if(*(p+i)>=1&&*(p+i)<=18) u=u+1;
		else if(*(p+i)>=19&&*(p+i)<=35) b=b+1;
		else if(*(p+i)>=36&&*(p+i)<=60) c=c+1;
		else if(*(p+i)>60) d=d+1;
	}
	printf("1-18: %.2lf%%\n",((double)u/n)*100);
    printf("19-35: %.2lf%%\n",((double)b/n)*100);
    printf("36-60: %.2lf%%\n",((double)c/n)*100);
    printf("60??: %.2lf%%\n",((double)d/n)*100);
	return 0;
}
int main(){
	int k[4]={0},i,j=0,n,a[100];
	double m;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		if(a[i]>=1&&a[i]<=18){
			k[0]++;
		}
		if(a[i]>=19&&a[i]<=35){
			k[1]++;
		}

		if(a[i]>=36&&a[i]<=60){
			k[2]++;
		}
		if(a[i]>60){
			k[3]++;
		}
	}
	m=100*(1.0*k[0]/n);
	printf("1-18: %.2lf%%\n",m);
	m=100*(1.0*k[1]/n);
	printf("19-35: %.2lf%%\n",m);
	m=100*(1.0*k[2]/n);
	printf("36-60: %.2lf%%\n",m);
	m=100*(1.0*k[3]/n);
	printf("60??: %.2lf%%\n",m);
	return 0;
}
int main(int argc, char* argv[])
{
    int n,i,age;
	int a=0,b=0,c=0,d=0;
    scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age);
	    if(age<=18)
			a++;
		else if(age>=19&&age<=35)
			b++;
		else if(age>=36&&age<=60)
			c++;
		else if(age>=61)
			d++;
	}
	printf("1-18: %.2lf%%\n",(double)a/(double)n*100.00);
	printf("19-35: %.2lf%%\n",(double)b/(double)n*100.00);
	printf("36-60: %.2lf%%\n",(double)c/(double)n*100.00);
	printf("60??: %.2lf%%\n",(double)d/(double)n*100.00);
	return 0;
}
void main()
{
	int n,i,sum;
	int x[100];
	int a,b,c,d;
	a=0;
	b=0;
	c=0;
	d=0;
	double a1,b1,c1,d1;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&x[i]);
		if(x[i]<=18)
			a=a+1;
		if(x[i]>=19&&x[i]<=35)
			b=b+1;
		if(x[i]>=36&&x[i]<=60)
			c=c+1;
		if(x[i]>60)
			d=d+1;
	}
	
	sum=a+b+c+d;
	a1=100*(double)a/sum;
	b1=100*(double)b/sum;
	c1=100*(double)c/sum;
	d1=100*(double)d/sum;

	printf("1-18: %.2lf%%\n",a1);
	printf("19-35: %.2lf%%\n",b1);
	printf("36-60: %.2lf%%\n",c1);
	printf("60??: %.2lf%%\n",d1);	


}
int main(){
	int i,sum,young=0,mid=0,old=0,oldest=0;
	double ap,mp,op,oep;
	scanf("%d\n",&sum);
	int age[101];
	for(i=1;i<=sum;i++){
		scanf("%d",&(age[i]));}
	for(i=1;i<=sum;i++){
		if((age[i])>=1&&(age[i])<=18){young++;}
		if((age[i])>=19&&(age[i])<=35){mid++;}
		if((age[i])>=36&&(age[i])<=60){old++;}
		if((age[i])>=61){oldest++;};
	}
    ap=1.0*young/sum*100;
	mp=1.0*mid/sum*100;
	op=1.0*old/sum*100;
	oep=100.0-ap-mp-op;
	printf("1-18: %.2lf",ap);printf("%%\n");
    printf("19-35: %.2lf",mp);printf("%%\n");
    printf("36-60: %.2lf",op);printf("%%\n");
    printf("60??: %.2lf",oep);printf("%%\n");

	  
return 0;
}
int k[100];
int main(){
int n,i;
double as,bs,cs,ds,sum;
as=0;
bs=0;
cs=0;
ds=0;
sum=0;
scanf("%d",&n);
for(i=0;i<n;i++)
	scanf("%d",&k[i]);
for(i=0;i<n;i++){
if(k[i]<=18)	as++;
if(k[i]>18&&k[i]<36)	bs++;
if(k[i]>35&&k[i]<61)	cs++;
if(k[i]>60)	ds++;

}
sum=n;

printf("1-18: %.2lf%%\n",as*100.0/sum);
printf("19-35: %.2lf%%\n",bs*100.0/sum);
printf("36-60: %.2lf%%\n",cs*100.0/sum);
printf("60??: %.2lf%%\n",ds*100.0/sum);

return 0;

}
double main ()
 {
float d,b,c,f,q=0,w=0,e=0,r=0;
int n,i,a[100];
scanf("%d", &n);
for(i=0;i<n;i++){
	scanf("%d", &a[i]);

	if(a[i]<=18)
	q=q+1;
else if(a[i]<=35)
w=w+1;
else if(a[i]<=60)
e=e+1;
else r=r+1;
}

b=q*100/n;
c=w*100/n;
d=e*100/n;
f=r*100/n;

printf("1-18: %.2f",b);
printf("%%");
printf("\n");

printf("19-35: %.2f",c);
printf("%%");
printf("\n");

printf("36-60: %.2f",d);
printf("%%");
printf("\n");

printf("60??: %.2f",f);
printf("%%");
printf("\n");
}
int main()
{
	int n,i,sz[100];
	int a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&(sz[i]));
	}
	for(i=0;i<n;i++){
		if(sz[i]>0&&sz[i]<19){
			a++;
		}
		if(sz[i]>18&&sz[i]<36){
			b++;
		}
		if(sz[i]>35&&sz[i]<61){
			c++;
		}
		if(sz[i]>60){
			d++;
		}
	}
	printf("1-18: %.2f%%\n",a*1.0/n*100.0);
    printf("19-35: %.2f%%\n",b*1.0/n*100.0);
    printf("36-60: %.2f%%\n",c*1.0/n*100.0);
    printf("60??: %.2f%%\n",d*1.0/n*100.0);
	return 0;
}
int main()
{
	int n,a[100],i,d1=0,d2=0,d3=0,d4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		if(a[i]<=18){
			d1+=1;
		}
		else if(a[i]<=35){
			d2++;
		}
		else if(a[i]<=60){
			d3++;
		}
		else{
			d4++;
		}
	}
	double b1,b2,b3,b4;
	b1=(double)d1/n;
	b2=(double)d2/n;
	b3=(double)d3/n;
	b4=(double)d4/n;
	printf("1-18: %.2lf%%\n",b1*100);
	printf("19-35: %.2lf%%\n",b2*100);
	printf("36-60: %.2lf%%\n",b3*100);
	printf("60??: %.2lf%%\n",b4*100);
	return 0;
}
int main(){
int a,i,t,m=0,n=0,p=0,q=0;
double x,y,z,v;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d",&t);
if(t<=18)
m+=1;
else if((t>=19)&&(t<36))
n+=1;
else if((t>=36)&&(t<61))
p+=1;
else q+=1;
}
x=m*100.0/a;
y=n*100.0/a;
z=p*100.0/a;
v=q*100.0/a;
printf("1-18: %.2lf%%\n",x);
printf("19-35: %.2lf%%\n",y);
printf("36-60: %.2lf%%\n",z);
printf("60??: %.2lf%%\n",v);
return 0;
}
int main()
{
	int n,i,a[100];
	double b=0,c=0,d=0,f=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++;
		else if((a[i]<=35)&&(a[i]>=19))
			c++;
		else if((a[i]<=60)&&(a[i]>=36))
			d++;
		else
			f++;
	}
	printf("1-18: %.2lf%%\n",b/(b+c+d+f)*100.0);
	printf("19-35: %.2lf%%\n",c/(b+c+d+f)*100.0);
	printf("36-60: %.2lf%%\n",d/(b+c+d+f)*100.0);
	printf("60??: %.2lf%%\n",f/(b+c+d+f)*100.0);
	return 0;

}
int main(int argc, char* argv[])
{  int a[100],n,m=0,s=0,l=0,o=0,i,e;
   scanf("%d",&n);
   for(i=0;i<n;i++){
      scanf("%d",&a[i]);
   }
for(i=0,m=0,s=0,l=0,o=0;i<n;i++){
     if(a[i]<=18){
        
        m+=1;
	 }else if(a[i]<=35){
	    s+=1;
	 

	 
	 }else if(a[i]<=60){
	    l+=1;
	 
	 
	 }else if(a[i]>60){
	    o+=1;
	 
	 
	 }
}

	printf("1-18: %.2lf%%\n",((double)m)/n*100);
	printf("19-35: %.2lf%%\n",((double)s)/n*100);
	printf("36-60: %.2lf%%\n",((double)l)/n*100);
	printf("60??: %.2lf%%\n",((double)o)/n*100);
	return 0;
}
int main(){
    int n,i,x;
    double a,b,c,d,e;
    a=0,b=0,c=0,d=0;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d",&x);
        if(x<=18){
            a=a+1;
        }else if(x>18&&x<36){
            b=b+1;
        }else if(x>35&&x<61){
            c=c+1;
        }else if(x>60){
            d=d+1;
        }
    }
    e=a+b+c+d;
    printf("1-18: %.2lf",a/e*100);printf("%%\n");
    printf("19-35: %.2lf",b/e*100);printf("%%\n");
    printf("36-60: %.2lf",c/e*100);printf("%%\n");
  printf("Over60: %.2lf",d/e*100);printf("%%\n");
   
return 0;
}
int main(){
	int n,i,s1=0,s2=0,s3=0,s4=0,a[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++){
		if(a[i]<19){
			s1++;
		}
        if((a[i]>18)&&(a[i]<36)){
			s2++;
		}
        if((a[i]>35)&&(a[i]<61)){
			s3++;
		}
        if(a[i]>60){
			s4++;
		}
	}
	printf("1-18: %.2f%%\n",(float)s1*100/n);
    printf("19-35: %.2f%%\n",(float)s2*100/n);
    printf("36-60: %.2f%%\n",(float)s3*100/n);
    printf("60??: %.2f%%\n",(float)s4*100/n);
	return 0;
}
int main ()
{
     int i,n;
     int a=0,b=0,c=0,d=0;
    int age[100];
    double m,o,p,q;
     scanf("%d",&n);
     for(i=0;i<n;i++){
    scanf("%d",&age[i] ) ;
   if(age[i]<=18&&age[i]>=1) 
    a=a+1;
    else if(age[i]<=35&&age[i]>=19)
    b=b+1;
   else if(age[i]<=60&&age[i]>=36)
    c=c+1;
  else if(age[i]>60)
	  d=d+1; }
m=1.0 *a/n*100;
o=1.0 *b/n*100;
p=1.0 *c/n*100;
q=1.0 *d/n*100;
printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",m,o,p,q);
  return 0;
}
int main()
{
	int n,i,k=0,m=0,t=0,s=0;
	scanf("%d",&n);
	int a[100];
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		if(a[i]<=18)
			k+=1;
		else if(a[i]>18&&a[i]<=35)
		    m+=1;
		else if(a[i]>35&&a[i]<=60)
			t+=1;
		else
		    s+=1;
	}
	printf("1-18: %.2lf%\n",(double)(k*100)/n);
	printf("19-35: %.2lf%\n",(double)(m*100)/n);
	printf("36-60: %.2lf%\n",(double)(t*100)/n);
	printf("60??: %.2lf%\n",(double)(s*100)/n);
	return 0;
}
int main()
{
	int a[1000],n,i,q,w,e,r;
	double z,x,c,v;
	scanf("%d\n",&n);
	q=0;
	w=0;
	e=0;
	r=0;
    for(i=0;i<n;i++)
	{   scanf("%d",&a[i]);
		if(a[i]<=18)
		{q++;}
		if(18<a[i] && a[i]<36)
		{w++;}
		if(35<a[i] && a[i]<61)
		{e++;}
		if(a[i]>60)
		{r++;}
	}
	z=100.00*q/n;
	x=100.00*w/n;
	c=100.00*e/n;
	v=100.00*r/n;
	printf("1-18: ");
	printf("%.2lf",z);
	printf("%%\n");
	printf("19-35: ");
	printf("%.2lf",x);
	printf("%%\n");
	printf("36-60: ");
	printf("%.2lf",c);
	printf("%%\n");
	printf("60??: ");
	printf("%.2lf",v);
	printf("%%\n");
return 0;
}
int main()
{
    int n,a,b,c,d,i,x;
    double A,B,C,D;
    scanf("%d\n",&n);
    a=0;
    b=0;
    c=0;
    d=0;
    for(i=1;i<=n;i++)
    {
     scanf("%d",&x);
     if(x<=18)
     {a++;}
     else if(x>=19&&x<=35)
     {b++;}
     else if(x>=36&&x<=60)
     {c++;}
     else
     {d++;}
    }
    A=100.0*a/n;
    B=100.0*b/n;
    C=100.0*c/n;
    D=100.0*d/n;
    printf("1-18: %.2lf%%\n",A);
    printf("19-35: %.2lf%%\n",B);
    printf("36-60: %.2lf%%\n",C);
    printf("Over60: %.2lf%%\n",D);
    return 0;
}
int main(){
int n,a,b,c,d;
int  x[100];
a=0;
b=0;
c=0;
d=0;
scanf("%d",&n);
for(int i=0;i<n;i++)
scanf("%d",&(x[i]));
for(int i=0;i<n;i++)
{if(x[i]>=1&&x[i]<=18)
{a++;}
else if(x[i]>=19&&x[i]<=35)
{b++;}
else if(x[i]>=36&&x[i]<=60)
{c++;}
else
{d++;}
}
printf("1-18: %.2lf%%\n",a*100.0/n);
printf("19-35: %.2lf%%\n",b*100.0/n);
printf("36-60: %.2lf%%\n",c*100.0/n);
printf("Over60: %.2lf%%\n",d*100.0/n);
return 0;
}
int main(int argc, char* argv[])
{
	int n,i;
	int a[100];
	double b[4];
	int c=0,d=0,e=0,f=0;
	scanf ("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf ("%d",&a[i]);
		if (a[i]<=18){c=c+1;}
        if (a[i]>=19&&a[i]<=35){d=d+1;}
        if (a[i]>=36&&a[i]<=60){e=e+1;}
        if (a[i]>=61){f=f+1;}
	}
	b[0]=((double)c/n)*100;
    b[1]=((double)d/n)*100;
    b[2]=((double)e/n)*100;
    b[3]=((double)f/n)*100;
    printf ("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",b[0],b[1],b[2],b[3]);
	
	return 0;
}
int main(){
	int n,sz[100],i;
	double	a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n-1;i++){
		scanf("%d ",&sz[i]);
	}
	scanf("%d",&sz[n-1]);
    for(i=0;i<n;i++){
		if(sz[i]<=18){
			a=a+1;
		}
                  if((18<sz[i])&&(sz[i]<=35)){
			b=b+1;
		}
                 if((35<sz[i])&&(sz[i]<=60)){
			c=c+1;
		}
                  if(sz[i]>60){
			d=d+1;
		}
	}
    printf("1-18: %.2lf%%\n",a/n*100);
	printf("19-35: %.2lf%%\n",b/n*100);
	printf("36-60: %.2lf%%\n",c/n*100);
	printf("60??: %.2lf%%\n",d/n*100);
	return 0;
}
int main(){
	int n;
	scanf("%d",&n);
    int bingren[100];	
	double nianling[4];

	int i;
	for(i=0;i<n;i++)
	{
		scanf("%d",&bingren[i]);
	}
	for(i=0;i<4;i++)
	{
		nianling[i]=0.0;
	}
	for(i=0;i<n;i++)
	{
		if(bingren[i]<=18)
		{
			nianling[0]++;
		}
		if(bingren[i]>18&&bingren[i]<=35)
		{
			nianling[1]++;
		}
		if(bingren[i]>35&&bingren[i]<=60)
		{
			nianling[2]++;
		}
		if(bingren[i]>=61)
		{
			nianling[3]++;
		}
	}
	for(i=0;i<4;i++)
	{
		nianling[i]=nianling[i]*100/n;
	}
	printf("1-18: %.2lf%%\n",nianling[0]);
	printf("19-35: %.2lf%%\n",nianling[1]);
	printf("36-60: %.2lf%%\n",nianling[2]);
	printf("60??: %.2lf%%\n",nianling[3]);
	return 0;
}
int main()
{
	int n;
	int s[100];
	int i=0,a=0,b=0,c=0,d=0;
	double pa,pb,pc,pd;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&(s[i]));
		if(s[i]>=1&&s[i]<=18)
		{
			a+=1;
		}
		else if(s[i]>18&&s[i]<36)
		{
			b+=1;
		}
		else if(s[i]>35&&s[i]<=60)
		{
			c+=1;
		}
		else if(s[i]>60)
		{
			d+=1;
		}
	}
	pa=1.0*100*a/n;
	pb=1.0*100*b/n;
    pc=1.0*100*c/n; 
    pd=1.0*100*d/n;
	printf("1-18: %.2lf%%\n",pa);
    printf("19-35: %.2lf%%\n",pb);
    printf("36-60: %.2lf%%\n",pc);
    printf("60??: %.2lf%%",pd);
	return 0;
}
int main(){
	int n;
	int i;
	int old[9999];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&old[i]);
	}
	int one=0,two=0,three=0,four=0;
	for(i=0;i<n;i++){
		if(old[i]>60)
			four=four+1;
		else if(old[i]>35)
			three=three+1;
		else if(old[i]>18)
			two=two+1;
		else
			one=one+1;
	}
	double onelv,twolv,threelv,fourlv;
	onelv=(double)one/n*100;
	twolv=(double)two/n*100;
	threelv=(double)three/n*100;
	fourlv=(double)four/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",onelv,twolv,threelv,fourlv);
	return 0;
}
int main()
{
	int n,i;
	int a=0;
	int b=0;
	int c=0;
	int d=0;
	double o,p,q,r;
	int nl[101];
	scanf("%d",&n);
    for(i=0;i<n;i++){
		scanf("%d",&nl[i]);
		if(nl[i]<=18){
			a++;
		}else if(nl[i]>=19&&nl[i]<=35){
			b++;
		}else if(nl[i]>=36&&nl[i]<=60){
			c++;
		}else if(nl[i]>=61){
			d++;
		}
	}
	o=1.0*a/n*100;
	p=1.0*b/n*100;
	q=1.0*c/n*100;
	r=1.0*d/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",o,p,q,r);
	return 0;
}
int main()
{
    int n,i,a[100];
	double e=0,f=0,g=0,h=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<=18)e++;
		else if(a[i]<=35)f++;
		else if(a[i]<=60)g++;
		else h++;
	}
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",(100*e)/n,(100*f)/n,(100*g)/n,(100*h)/n);
	return 0;
}
int main()
{
	int sz[100],i,n,sum=0,b[4]={0};
	double c[4];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&sz[i]);
		sum++;
		if(sz[i]>=1&&sz[i]<=18)
		{
			b[0]++;
		}
		else if(sz[i]>=19&&sz[i]<=35)
		{
			b[1]++;
		}
		else if(sz[i]>=36&&sz[i]<=60)
		{
			b[2]++;
		}
		else if(sz[i]>=61)
		{
			b[3]++;
		}
	}
	for(i=0;i<4;i++)
	{
		c[i]=(double)b[i]/sum;
	}
	printf("%d-%d: %.2lf%%\n",1,18,c[0]*100);
    printf("%d-%d: %.2lf%%\n",19,35,c[1]*100);
    printf("%d-%d: %.2lf%%\n",36,60,c[2]*100);
    printf("%d??: %.2lf%%\n",60,c[3]*100);
	return 0;
}
int main()
{
  int i,n,j,a=0,b=0,c=0,d=0;
  double w,x,y,z;
  scanf("%d\n",&n);
  for(i=0;i<n;i++){
    scanf("%d",&j);
	if(j<=18){
	  a++;
	  }
	  else if(19<=j&&j<=35){
	  b++;
	  }
	  else if(36<=j&&j<=60){
	  c++;
	  }
	  else   d++;
	  }
      w=(double)a/n*100;
      x=(double)b/n*100;
	  y=(double)c/n*100;
	  z=(double)d/n*100;
	  printf("1-18: %.2lf%%\n",w);
	  printf("19-35: %.2lf%%\n",x);
      printf("36-60: %.2lf%%\n",y);
      printf("60??: %.2lf%%\n",z);
      return 0;
}
int main()
{
	int i,n,a[100],b1,b2,b3,b4;
	double s1,s2,s3,s4;
	scanf("%d",&n);
	b1=b2=b3=b4=0;
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<19)
			b1++;
		if(a[i]>18&&a[i]<36==1)
			b2++;
		if(a[i]>35&&a[i]<61==1)
			b3++;
		if(a[i]>60)
			b4++;
	}
	s1=(double)(b1)/(double)(n)*100;
	s2=(double)b2/(double)n*100;
	s3=(double)b3/(double)n*100;
	s4=(double)b4/(double)n*100;
	printf("1-18: %.2lf%%\n",s1);
	printf("19-35: %.2lf%%\n",s2);
	printf("36-60: %.2lf%%\n",s3);
	printf("60??: %.2lf%%\n",s4);
	return 0;
}
int main()
{
	int age[num];
	int n,i;
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		scanf("%d",&age[i]);
		}
	
	double a=0,b=0,c=0,d=0;
	for(i=0;i<n;i++){
		if(age[i]>=1&&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%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",a/n*100,b/n*100,c/n*100,d/n*100);
	return 0;
}
int main()
{
	int n;
	cin >> n;
	int x=0,a=0,b=0,c=0,d=0;
	for (int i=1;i<=n;i++)
	{
		cin >> x;
		if (x<=18) a++;
		if (x>=19 && x<=35) b++;
		if (x>=36 && x<=60) c++;
		if (x>=61) d++;
	} 
	 cout<<fixed;
	 cout<< "1-18: "<< setprecision(2) << (double)a/n*100 << "%\n";
	 cout<<"19-35: "<< setprecision(2) << (double)b/n*100 << "%\n";
     cout<<"36-60: "<< setprecision(2) << (double)c/n*100 << "%\n";
     cout<<"60??: "<< setprecision(2) << (double)d/n*100 << "%\n";
	 return 0;
}
int main()
{
	int n;
	int i;
	int a[100];
	int b=0,c=0,d=0,e=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++){
		if(a[i]>=1&&a[i]<=18)
			b++;
		if(a[i]>=19&&a[i]<=35)
			c++;
		if(a[i]>=36&&a[i]<=60)
			d++;
		if(a[i]>=61)
			e++;
	}
	printf("1-18: %.2lf%%\n",(double)b/n*100);
	printf("19-35: %.2lf%%\n",(double)c/n*100);
	printf("36-60: %.2lf%%\n",(double)d/n*100);
	printf("60??: %.2lf%%\n",(double)e/n*100);
	return 0;
}
int main(){
int n,i,o=0,p=0,q=0,s=0,sum=0;
double a,b,c,d;
scanf("%d",&n);
int nl[n];
for(i=0;i<n;i++){
  scanf("%d",&nl[i]);
}
for(i=0;i<n;i++){
  if((nl[i])>=1&&(nl[i])<=18) {
       o++;
  }
  else if((nl[i])>=19&&(nl[i])<=35){
       p++;
  }
  else if((nl[i])>=36&&(nl[i])<=60){
       q++;
  }
  else{
       s++;
  }
}
   sum=o+p+q+s;
   a=(100.00*o)/sum;
   b=(100.00*p)/sum;
   c=(100.00*q)/sum;
   d=(100.00*s)/sum;
   printf("1-18: %.2lf%\n",a);
   printf("19-35: %.2lf%\n",b);
   printf("36-60: %.2lf%\n",c);
   printf("Over60: %.2lf%\n",d);
return 0;
}
int main(int argc, char* argv[])
{
   int n,i;
   scanf("%d",&n);
   int age;
   int a=0,b=0,c=0,d=0;
   double aa=0,bb=0,cc=0,dd=0;
   for(i=1;i<n+1;i++)
   {
	   scanf("%d",&age);
       if(age<=18&&age>=1)
	   {
		   a++;
	   }
	   else if(age<=35&&age>=19)
	   {
		   b++;
	   }
	   else if(age<=60&&age>=36)
	   {
		   c++;
	   }
	   else
	   {
		   d++;
	   }
   }
        aa=((double)a/(double)n)*100;
		bb=((double)b/(double)n)*100;
		cc=((double)c/(double)n)*100;
		dd=((double)d/(double)n)*100;
		printf("1-18: %.2lf%%\n",aa);
		printf("19-35: %.2lf%%\n",bb);
		printf("36-60: %.2lf%%\n",cc);
		printf("60??: %.2lf%%\n",dd);
        return 0;
}
int main()
{
	int n,i,age[100],sum[4]={0};
	cin>>n;
	for(i=0;i<n;i++)
	{
		cin>>age[i];
		if(age[i]>=1&&age[i]<=18) sum[0]++;
		else if(age[i]>=19&&age[i]<=35) sum[1]++;
		else if(age[i]>=36&&age[i]<=60) sum[2]++;
		else if(age[i]>=61) sum[3]++;
	}
	printf("1-18: %.2lf%%\n",(double)sum[0]*100/n);
	printf("19-35: %.2lf%%\n",(double)sum[1]*100/n);
	printf("36-60: %.2lf%%\n",(double)sum[2]*100/n);
	printf("60??: %.2lf%%",(double)sum[3]*100/n);
	return 0;
}
int main(){
	int n, a[100],i,m;
	double x=0,y=0,z=0,w=0,p,q,r,s;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		if (a[i]<=18){x++;}
		else if (a[i]>18&&a[i]<=35){y++;}
		else if (a[i]>35&&a[i]<=60){z++;}
		else if(a[i]>60){w++;}
	}
		p=100*x/n;
		q=100*y/n;
		r=100*z/n;
		s=100*w/n;
		printf("1-18: %.2lf",p);
		printf("%\n");

printf("19-35: %.2lf",q);
		printf("%\n");
printf("36-60: %.2lf",r);
	printf("%\n");
printf("60??: %.2lf",s);
		printf("%\n");


	return 0;
}
int main()
{
  int n=0;
  int a=0;  int b=0;  int c=0;  int d=0;
  double sum=0;
  int buffer=0;

  scanf("%d", &n);
  for (int i=1; i<=n; ++i)
  {
    scanf("%d", &buffer);
	if (buffer>=1 && buffer<=18)
	{
	  ++a;
	}
	if (buffer>=19 && buffer<=35)
	{
	  ++b;
	}
	if (buffer>=36 && buffer<=60)
	{
	  ++c;
	}
	if (buffer>=61)
	{
	  ++d;
	}
	
  }
  sum = a+b+c+d;
  printf("1-18: %.2lf%%\n", a/sum*100);
  printf("19-35: %.2lf%%\n", b/sum*100);
  printf("36-60: %.2lf%%\n", c/sum*100);
  printf("60??: %.2lf%%\n", d/sum*100);
  return 0;
}
int main() 
{ 
  int n,i;
  int a[200];
  int e=0;
  int b=0;
  int c=0;
  int d=0;
  double A,B,C,D;
  scanf("%d",&n);
  for(i=0;i<n;i++)
  {
	  scanf("%d",&a[i]);
	  if(a[i]>=1 && a[i]<=18)
	  {
		  e=e+1;
	  }
	  if(a[i]>=19 && a[i]<=35)
	  {
		  b=b+1;
	  }
	  if(a[i]>=36 && a[i]<=60)
	  {
		  c=c+1;
	  }
	  if(a[i]>60)
	  {
		  d=d+1;
	  }
  }

  A=(double)(100.0*e/n);
  B=(double)(100.0*b/n);
  C=(double)(100.0*c/n);
  D=(double)(100.0*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 u[100];
int main()
{
	double a=0,b=0,c=0,d=0;
	int n,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&u[i]);
}
for(i=0;i<n;i++)
{
if(u[i]<=18)
a++;
if(u[i]>=19&&u[i]<=35)
b++;
if(u[i]>=36&&u[i]<=60)
c++;
if(u[i]>60)
d++;
}
a=a/n*100;
b=b/n*100;
c=c/n*100;
d=d/n*100;
printf("1-18: %.2f%%\n",a);
printf("19-35: %.2f%%\n",b);
printf("36-60: %.2f%%\n",c);
printf("60??: %.2f%%\n",d);
	   return 0;
}