semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int n,i;
	int a[100];
	double b[100];
	int x,y,z,t;
	scanf("%d",&n);
    for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	x=0;
	y=0;
	z=0;
	t=0;
    for(i=0;i<n;i++)
	{
		if(a[i]<=18)
          x++;
		if(a[i]>=36&&a[i]<=60)
		z++;
		if(a[i]>=61)
        t++;
		if(a[i]>=19&&a[i]<=35)
		y++;
	}
    b[0]=(double)x/n;
    b[1]=(double)y/n;
    b[2]=(double)z/n;
    b[3]=(double)t/n;
	printf("1-18: %.2lf%%\n",b[0]*100);
    printf("19-35: %.2lf%%\n",b[1]*100);
    printf("36-60: %.2lf%%\n",b[2]*100);
    printf("60??: %.2lf%%\n",b[3]*100);
	return 0;
}
int main()
{
	int i,n,a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		int nian;
		scanf("%d",&nian);
		a+=(nian<=18)? 1:0;
		b+=(nian<=35&&nian>=19)? 1:0;
		c+=(nian<=60&&nian>=36)? 1:0;
		d+=(nian>=61)? 1:0;
	}
	int zong=a+b+c+d;
	printf("1-18: %.2lf%%\n",1.0*100*a/zong);
	printf("19-35: %.2lf%%\n",1.0*100*b/zong);
	printf("36-60: %.2lf%%\n",1.0*100*c/zong);
	printf("60??: %.2lf%%\n",1.0*100*d/zong);
	return 0;
}
int main()
{
    int n,a;
    scanf("%d",&n);
    int i=1;
    int b=0;
    int c=0;
    int d=0;
    int e=0;
    while (i<=n){
        scanf("%d",&a);
        if(a>=1&&a<=18){
            b++;
        }else if(a>=19&&a<=35){
            c++;
        }else if(a>=36&&a<=60){
            d++;
        }else if(a>=61){
            e++;
        }
        i++;
    }
    double N,B,C,D,E;
    N=n;
    B=b;
    C=c;
    D=d;
    E=e;
    double F,G,H,I;
    F=B/N*100;
    G=C/N*100;
    H=D/N*100;
    I=E/N*100;
    printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",F,G,H,I);
    return 0;
}
int main()
{
	int n,b=0,c=0,d=0,e=0,a,i;
	scanf("%d", &n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a);
		if(a<=18)
			b=b+1;
		else if(a<=35)
			c=c+1;
		else if(a<=60)
			d=d+1;
		else
			e=e+1;
	}
	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%%",(double)e/n*100);
	return 0;
}
int main(int argc, char* argv[])
{
	int a[100],n,i;
	double	sum1=0,sum2=0,sum3=0,sum4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)
			sum1=sum1+1;
		else if(19<=a[i]&&a[i]<=35)
			sum2=sum2+1;
		else if(36<=a[i]&&a[i]<=60)
			sum3=sum3+1;
		else
		    sum4=sum4+1;
	}
	printf("1-18: %.2lf%%\n",(double)(sum1/n*100));
	printf("19-35: %.2lf%%\n",(double)(sum2/n*100));
	printf("36-60: %.2lf%%\n",(double)(sum3/n*100));
	printf("60??: %.2lf%%\n",(double)(sum4/n*100));	
	return 0;
}
int main(){
	int n,i,a,x=0,y=0,z=0,w=0;
	double b,c,d,e;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a);
        if(a<=18){
           x++;
		}else if(a>=19&&a<=35){
			y++;
		}else if(a>=36&&a<=60){
			z++;
		}else if(a>=61){
			w++;
		}
	}
	b=100*1.0*x/n;
	c=100*1.0*y/n;
	d=100*1.0*z/n;
	e=100*1.0*w/n;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",b,c,d,e);
	return 0;
}
int main(){
	int n;
	int i;
	int a;
	double s=0,d=0,f=0,g=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a);
		if(0<=a&&a<=18){
			s=s+1;
		}else if(19<=a&&a<=35){
			d=d+1;
		}else if(36<=a&&a<=60){
			f=f+1;
		}else if(60<a){
			g=g+1;
		}
	}
	s=100*s;
	d=100*d;
	f=100*f;
	g=100*g;
		printf("1-18: %0.2lf%%\n",s/n);
        printf("19-35: %0.2lf%%\n",d/n);
        printf("36-60: %0.2lf%%\n",f/n);
        printf("60??: %0.2lf%%\n",g/n);
		return 0;
	}
int main()
{
	int n,i,age[100],count1=0,count2=0,count3=0,count4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&age[i]);
        if(age[i]>=1&&age[i]<=18)
			count1++;
		else if(age[i]>=19&&age[i]<=35)
			count2++;
		else if(age[i]>=36&&age[i]<=60)
			count3++;
		else count4++;
	}
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",
		(((double)count1)/n)*100,(((double)count2)/n)*100,
		(((double)count3)/n)*100,(((double)count4)/n)*100);
	return 0;
}
int main()
{
	double y,n,i,wcn,qn,zn,ln,wcn0,qn0,zn0,ln0;
	i=1;
	wcn=0;
	qn=0;
	zn=0;
	ln=0;
	scanf("%lf",&n);
	while(i<=n){
		scanf("%lf",&y);
		if(y<19){
			wcn=wcn+1;
		}
		else if(y>18&y<36){
			qn=qn+1;
		}
		else if(y>35&y<61){
			zn=zn+1;
		}
		else if(y>60){
			ln=ln+1;
		}
		i=i+1;
	}
	wcn0=wcn/n*100;
	qn0=qn/n*100;
	zn0=zn/n*100;
	ln0=ln/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",wcn0,qn0,zn0,ln0);
	return 0;
}
int main(){
	int n,i;
	int sz[100];
	int a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
        scanf("%d",&sz[i]);
		if(sz[i]>=1&&sz[i]<=18){
			a+=1;
		}else if(sz[i]>=19&&sz[i]<=35){
			b+=1;
		}else if(sz[i]>=36&&sz[i]<=60){
			c+=1;
		}else{
			d+=1;
		}
	}
	printf("1-18: %.2lf%%\n",1.0*a*100/n);
         printf("19-35: %.2lf%%\n",1.0*b*100/n);
         printf("36-60: %.2lf%%\n",1.0*c*100/n);
         printf("60??: %.2lf%%\n",1.0*d*100/n);
	return 0;
}
void main()
{
	int n,i,m[100];
	double a,b,c,d;

	scanf("%d",&n);
	for(i=0;i<=n-1;i++)
	{
		scanf("%d",&m[i]);
	}

	a=0;
	b=0;
	c=0;
	d=0;

	for(i=0;i<=n-1;i++)
	{
		if(m[i]<=18) a=a+1;
		if(m[i]>18&&m[i]<=35) b=b+1;
		if(m[i]>35&&m[i]<=60) c=c+1;
		if(m[i]>=61) d=d+1;
	}
	a=(double)a*100/(double)n;
	b=(double)b*100/(double)n;
	c=(double)c*100/(double)n;
	d=(double)d*100/(double)n;

	printf("1-18: %.2f%%\n""19-35: %.2f%%\n""36-60: %.2f%%\n""60??: %.2f%%\n",a,b,c,d);

}
int main()
{
	int a[100],i;
	double n,b=0,c=0,d=0,e=0;
    double b1,c1,d1,e1;
	char m='%';
	scanf("%lf",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[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]>60){
			e++;
		}
	}
		b1=(b/n)*100;
     	c1=(c/n)*100;
	   d1=(d/n)*100;
   e1=(e/n)*100;
   printf("1-18: %.2lf%c\n",b1,m);

 printf("19-35: %.2lf%c\n",c1,m);
 printf("36-60: %.2lf%c\n",d1,m);
 printf("60??: %.2lf%c\n",e1,m);
 return 0;
}
int main(){
int n,i,j,a[10000];
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]=b[0]+1;}
if(a[i]>18&&a[i]<=35){
b[1]=b[1]+1;}
if(a[i]>35&&a[i]<=60){
b[2]=b[2]+1;}
if(a[i]>60){
b[3]=b[3]+1;}
}
for(i=0;i<4;i++){
b[i]=(100.0*b[i])/n;
}
printf("1-18: %.2lf%%\n",b[0]);
printf("19-35: %.2lf%%\n",b[1]);
printf("36-60: %.2lf%%\n",b[2]);
printf("Over60: %.2lf%%\n",b[3]);
return 0;
}
int main()
{
	double n;
	int i;
	double a=0;
	double b=0;
	double c=0;
	double d=0;
	double A=0;
	double B=0;
	double C=0;
	double D=0;
	int age[101];
	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(19<=age[i]&&age[i]<=35)
		{
			B+=1;
		}
		else if(36<=age[i]&&age[i]<=60)
		{
			C+=1;
		}
		else if(age[i]>60)
		{
			D+=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%%",d);

	return 0;
}
main()
{
int i,t;
double n;
double a[4];

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

	a=0;
	b=0;
	c=0;
	d=0;
	scanf ("%d",&n);

	for (i=0;i<n;i++){
		scanf ("%d",&nian);

		if (nian<=18) a++;
		else if (nian<=35) b++;
		else if (nian<=60) c++;
		else d++;
	}

	A=(double )100*a/n;
	B=(double )100*b/n;
	C=(double )100*c/n;
	D=(double )100*d/n;

	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",A,B,C,D);
	return 0;
}
int main(int argc, char* argv[])
{
	int n,i,a;
	double xiaob,qingb,zhongb,laob;
	int xiao=0,qing=0,zhong=0,lao=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d", &a);
		if(a>=1&&a<=18)
			xiao++;
		else if(a>=19&&a<=35)
			qing++;
		else if(a>=36&&a<=60)
			zhong++;
		else if(a>=61)
			lao++;
	}
	xiaob=(double)xiao/n*100;
	qingb=(double)qing/n*100;
	zhongb=(double)zhong/n*100;
	laob=(double)lao/n*100;
	printf("1-18: %.2lf%%\n",xiaob);
	printf("19-35: %.2lf%%\n",qingb);
         printf("36-60: %.2lf%%\n",zhongb);
	printf("60??: %.2lf%%\n",laob);
	return 0;
}
int main(){
double n,x[4];
int i;
double a=0,b=0,c=0,d=0;
int m;
scanf("%lf",&n);
for(i=0;i<n;i++){
	scanf("%d ",&m);
	if(m>60){
		d=d+1;
	}else if(m<19){
		a=a+1;
	}else if(m>=19&&m<=35){
		b=b+1;
	}else if(m<=60&&m>=36){
		c=c+1;
	}
}
x[0]=100*(a/n);
x[1]=100*(b/n);
x[2]=100*(c/n);
x[3]=100*(d/n);
printf("1-18: %.2lf%%\n",x[0]);
printf("19-35: %.2lf%%\n",x[1]);
printf("36-60: %.2lf%%\n",x[2]);
printf("60??: %.2lf%%\n",x[3]);
return 0;
}
int main(){
	int a[100],n,i;
	int b[100]={0};
	double w,x,y,z;
	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]++;
	if(a[i]<36&&a[i]>18)
		b[1]++;
    if(a[i]>35&&a[i]<61)
		b[2]++;
	if(a[i]>60)
		b[3]++;
	}
	w=1.0*b[0]*100/n;
	x=1.0*b[1]*100/n;
	y=1.0*b[2]*100/n;
	z=1.0*b[3]*100/n;
printf("1-18: %.2lf",w);
printf("%%\n");
printf("19-35: %.2lf",x);
printf("%%\n");
printf("36-60: %.2lf",y);
printf("%%\n");
printf("60??: %.2lf",z);
printf("%%\n");
return 0;
}
int main(int argc, char* argv[])
{
	int n,y[100],i;
		double a=0,b=0,c=0,d=0;
		scanf("%d",&n);
	for(i=0;i<n;i++)
	{	scanf("%d",&y[i]);
	     if(y[i]<=18)
			 a++;
		 if((y[i]>=19)&&(y[i]<=35))
			 b++;
		 if((y[i]>=36)&&(y[i]<=60))
			 c++;
		 if(y[i]>60)
			 d++;
    }
    	printf("1-18: %.2f%%\n",100.0*a/n);
		printf("19-35: %.2f%%\n",100.0*b/n);
		printf("36-60: %.2f%%\n",100.0*c/n);
		printf("60??: %.2f%%\n",100.0*d/n);
		return 0;
}
int main()
{
	int n,i;
	int year;
	double y1=0,y2=0,y3=0,y4=0;
	cin>>n;
	for(i=0;i<n;i++) //???????
	{
		cin>>year;
		if(year<19)
			y1++;
		else if(year<36)
			y2++;
		else if(year<61)
			y3++;
		else
			y4++;
	}
	y1=y1*100/n;
	y2=y2*100/n;
	y3=y3*100/n;
	y4=y4*100/n;
	printf("1-18: %.2lf%\n",y1);
	printf("19-35: %.2lf%\n",y2);
	printf("36-60: %.2lf%\n",y3);
	printf("60??: %.2lf%\n",y4);

	
	return 0;
}
int main(){
	int t;
	double n,a=0,b=0,c=0,d=0,e,f,g,h;
	scanf("%lf\n",&n);
	for(int i=0;i<n;i++){
		scanf("%d",&t);
		if(t<=18){
			a++;
		}else if(t>18&&t<=35){
			b++;
		}else if(t>35&&t<=60){
			c++;
		}else{
			d++;
	}}
		printf("1-18: %.2lf%%\n",e=a/n*100);
		printf("19-35: %.2lf%%\n",f=b/n*100);
		printf("36-60: %.2lf%%\n",g=c/n*100);
		printf("60??: %.2lf%%\n",h=d/n*100);	
	return 0;
}
int main(int argc, char* argv[])
{
	int a[100],i,n;
	int b=0,c=0,d=0,e=0;
	double f,g,h,j;

	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);

	}
	for(i=0;i<n;i++)
	{
		if(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++;
	}
	f=(double)b/n*100;
	g=(double)c/n*100;
	h=(double)d/n*100;
	j=(double)e/n*100;
	printf("1-18: %.2lf%",f);
	printf("%%\n");
	printf("19-35: %.2lf%",g);
		printf("%%\n");
	printf("36-60: %.2lf%",h);
		printf("%%\n");
	printf("60??: %.2lf%",j);
		printf("%%\n");
	
	return 0;
}
int main()//???
{
	int n;//?????????????
	double a=0,b=0,c=0,d=0;//???????????????????
	cin>>n;//??n
	int e[n];//??????????????????
	for (int k=0;k<n;k++)
		cin>>e[k];//???????????
	for (int k=0;k<n;k++)
	{
		if (e[k]<=18)
			a++;//????????18?a+1
		if (e[k]>=19&&e[k]<=35)
			b++;//???????19?35???b+1
		if (e[k]>=36&&e[k]<=60)
			c++;//???????36?60???c+1
		if (e[k]>=61)
			d++;//????????60?d+1
	}    
	a=a/n*100;//????????
	b=b/n*100;//????????
	c=c/n*100;//????????
	d=d/n*100;//????????
	printf ("1-18:");//??
	printf (" ");
         printf ("%.2f",a);
	printf ("%%");
	printf  ("\n");
	printf ("19-35:");
         printf (" ");
	printf ("%.2f",b);
	printf ("%%");
	printf  ("\n");
	printf ("36-60:");
         printf (" ");
	printf ("%.2f",c); 
	printf ("%%");
	printf  ("\n");
	printf ("60??:" );
         printf (" ");
	printf ("%.2f",d);
	printf ("%%");
	printf  ("\n");
	return 0;
}
int main()
{int i,n,age;
double sum1=0.00,sum2=0.00,sum3=0.00,sum4=0.00;
double k1,k2,k3,k4;
scanf("%d",&n);
for(i=1;i<=n;i++){
 scanf("%d",&age);
 if(age>=1&&age<=18) sum1=sum1+1;
 else if(age<=35) sum2=sum2+1;
 else if(age<=60) sum3=sum3+1;
 else sum4=sum4+1;
}
 k1 = (double)(sum1/n*100);
 k2 = (double)(sum2/n*100);
 k3 = (double)(sum3/n*100);
 k4 = (double)(sum4/n*100);
printf("1-18: %.2lf%\n",k1);
printf("19-35: %.2lf%\n",k2);
printf("36-60: %.2lf%\n",k3);
printf("60??: %.2lf%\n",k4);
return 0;
}
int main()
{
	double a,b,c,d;
	int n,e=0,f=0,g=0,h=0,i;
	int sz[100];
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
		scanf("%d",&sz[i]);
	}
	for(i=0;i<n;i++){
		if (sz[i]<=18)
			e+=1;
		else if(sz[i]>18 && sz[i]<=35)
			f+=1;
		else if(sz[i]>35 && sz[i]<=60)
			g+=1;
		else if(sz[i]>60)
			h+=1;
	}
	a=100.0*e/n;
	b=100.0*f/n;
	c=100.0*g/n;
	d=100.0*h/n;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",a,b,c,d);
	return 0;
}
int main(){
double a,b,c,d;
a=0;
b=0;
c=0;
d=0;
int i,n;
scanf("%d",&n);
int e[n];
for(i=1;i<=n;i++){
    scanf("%d",&(e[i]));
    if((e[i])>=1 && (e[i])<=18){
        a=a+1;
    }else if((e[i])>=19 && (e[i])<=35){
        b=b+1;
    }else if((e[i])>=36 && (e[i])<=60){
        c=c+1;
    }else if((e[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%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",a,b,c,d);
    return 0;
}
int main()
{
	int n;
	double x,y,z,p;
	int a=0;
	int b=0;
	int c=0;
	int d=0;
	int i;
	int sz[100];
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
		scanf("%d",&sz[i]);
	}
	for(i=0;i<n;i++){
		if(sz[i]<=18){
			a+=1;		
		}
		else if(sz[i]>18,sz[i]<=35){
			b+=1;
		}
		else if(sz[i]>35,sz[i]<=60){
			c+=1;
		}
		else{
			d+=1;
		}
	}
	x=(double)a/n*100;
			y=(double)b/n*100;
			z=(double)c/n*100;
			p=(double)d/n*100;
	printf("1-18: %.2lf%%\n",x);
	printf("19-35: %.2lf%%\n",y);
	printf("36-60: %.2lf%%\n",z);
	printf("60??: %.2lf%%\n",p);
	return 0;
}
/************************************
 *   ????????				*
 *   ??????  1200012815		*
 *   ???2012.9.25				*
 ************************************/
int main()
{
	int n, i, a;
	cin >> n;
	double a1, a2, a3, a4;
	a1 = a2 = a3 = a4 =0;
	for (i = 1; i <= n; i ++)
	{
		cin >> a;
		if (a <= 18)
			a1 ++;
		else if (a >= 19 && a <= 35)
			a2 ++;
		else if (a >= 36 && a <= 60)
			a3 ++;
		else 
			a4 ++;
	}
	cout << fixed << setprecision(2) << "1-18: " << 100 * a1 / n << "%" << endl;
	cout << fixed << setprecision(2) << "19-35: " << 100 * a2 / n << "%" << endl;
	cout << fixed << setprecision(2) << "36-60: " << 100 * a3 / n << "%" << endl;
	cout << fixed << setprecision(2) << "60??: " << 100 * a4 / n << "%" << endl;
	return 0;
}
int main(int argc, char* argv[])
{
	int n;
	scanf("%d",&n);
	double a=0,b=0,c=0,d=0;
	int age;
	for(int i=0;i<n;i++)
	{
		scanf("%d",&age);
		if(age>=1&&age<=18)
		{
			a++;
		}
		else if(age>=19&&age<=35)
		{
			b++;
		}
		else if(age>=36&&age<=60)
		{
			c++;
		}
		else if(age>=60)
		{
			d++;
		}
	}
	
	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,a[101],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;
       else if(a[i]>=19&&a[i]<=35)
       c=c+1;
       else if(a[i]>=36&&a[i]<=60)
       d=d+1;
       else e=e+1;
    }
    f=(double)b/n*100;
    g=(double)c/n*100;
    h=(double)d/n*100;
    k=(double)e/n*100;
    printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\n60??: %.2lf%",f,g,h,k);
}
//************************
//* 9.cpp
//*   ?????
//*  Created on: 2012-10-1
//*  Author: ??   1200012934
//*************************
int main()               //???
{

	//?????n?????i???????age????
	//????????????
	double n = 0, i = 0, age = 0, num1_18 = 0,
		num19_35 = 0, num36_60 = 0, num61_ = 0;
	cin >> n;              //????????
	for (i = 1; i <= n; i++)  //??
		{cin >> age;      //?????????age

		  //?????????age???????
		if (age >= 1 && age <= 18)
	    	{num1_18 = num1_18 + 1;}
	    else
	    	{if (age <= 35)
	    		{num19_35 = num19_35 + 1;}
	    	 else
	    		{if (age <= 60)
	    			{num36_60 = num36_60 + 1;}
	    		else
	    			{num61_ = num61_ + 1;}
	    		}
	    	}
		}
    cout << setprecision(2) << fixed;     //???????
	cout << "1-18: " << (double) num1_18 / n * 100 << "%" << endl;   //??
	cout << "19-35: " << (double) num19_35 / n * 100 << "%" << endl;
	cout << "36-60: " << (double) num36_60 / n * 100 << "%" << endl;
	cout << "60??: " << (double) num61_ / n * 100 << "%";
	return 0;
}         //?????
int main(){
	int a[1000];
	int s1=0,s2=0,s3=0,s4=0;
	int n,i;
	scanf("%d",&n);
	for (i=0;i<n;i++){
		scanf("%d",&a[i]);
		if (a[i]<=18){
			s1++;
		}
		if (a[i]>18 && a[i]<=35){
			s2++;
		}
		if (a[i]>35 && a[i]<61){
			s3++;
		}
		if (a[i]>60){
			s4++;
		}
	}
    double x,b,c,d;
	x=s1*1.0*100/n;
	b=s2*1.0*100/n;
	c=s3*1.0*100/n;
	d=s4*1.0*100/n;
	printf("1-18: %.2lf%%\n",x);
	printf("19-35: %.2lf%%\n",b);
	printf("36-60: %.2lf%%\n",c);
	printf("60??: %.2lf%%\n",d);
	return 0;
}
int main()
{
   int sz[100];
   int i,n;
   double 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]>=1&&sz[i]<=18)
	   a+=1;
	   else if(sz[i]>=19&&sz[i]<=35)
		   b+=1;
	   else if(sz[i]>=36&&sz[i]<=60)
		   c+=1;
	   else if(sz[i]>60)
		   d+=1;
   }
   printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\nOver60: %.2lf%\n",a/n*100,b/n*100,c/n*100,d/n*100);
	return 0;
}
int main()
{
   int s[100],i;
   double n,a=0,b=0,c=0,d=0;
   scanf("%lf",&n);
   for(i=0;i<n;i++){
   	scanf("%d",&s[i]);
   }
   for(i=0;i<n;i++){
   	if(s[i]>=1&&s[i]<=18)
   	a++;
   	else if(s[i]>=19&&s[i]<=35)
   	b++;
   	else if(s[i]>=36&&s[i]<=60)
   	c++;
   	else
   	d++;
   }
   a=a/n*100;
   b=b/n*100;
   c=c/n*100;
   d=d/n*100;
   printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",a,b,c,d);
   return 0;
}
void main()
{
	int b,a[100],i,m=0,n=0,o=0,p=0;
	double s1,s2,s3,s4;
	scanf("%d",&b);
	for(i=0;i<b;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]>=0 && a[i]<=18)
		{
			m=m+1;
		}
		else if(a[i]>=19 && a[i]<=35)
		{
			n=n+1;
		}
		else if(a[i]>=36 && a[i]<=60)
		{
			o=o+1;
		}
		else
		{
			p=p+1;
		}
	}
	s1=(double)m/(double)b;
	s2=(double)n/(double)b;
	s3=(double)o/(double)b;
	s4=(double)p/(double)b;
	printf("1-18: %.2lf",s1*100);
	printf("%%\n");
	printf("19-35: %.2lf",s2*100);
	printf("%%\n");
	printf("36-60: %.2lf",s3*100);
	printf("%%\n");
	printf("60??: %.2lf",s4*100);
	printf("%%");
}
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++;
	}
	printf("1-18: %.2lf%%\n",(double) a/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;
}
//#include <math.h>




int main()
{

	int n;
	int ta;
	int t1=0,t2=0,t3=0,t4=0;

	scanf("%d",&n);

	int i;
	for(i=0;i<n;i++){
		scanf("%d",&ta);

		if(ta<=18){
			t1++;
		}
		else if(ta<=35){
			t2++;
		}
		else if(ta<=60){
			t3++;
		}
		else{
			t4++;
		}
	}

	printf("1-18: %.2lf%\n",(double)t1*100/n);
	printf("19-35: %.2lf%\n",(double)t2*100/n);
	printf("36-60: %.2lf%\n",(double)t3*100/n);
	printf("60??: %.2lf%\n",(double)t4*100/n);
	return 0;
}
void main()
{
   int i,j,a,b,c,d;
   a=0;b=0;c=0;d=0;
   double x,y,z,w,n;
   int tt[10000];
   scanf("%lf",&n);
   for(i=0;i<n;i++)
   {
	   scanf("%d",&tt[i]);
	    if(tt[i]<=18) a++;
	    else if(tt[i]<=35) b++;
		     else if(tt[i]<=60) c++; 
		          else d++;
   }
   x=(a*100)/n;
   y=(b*100)/n;
   z=(c*100)/n;
   w=(d*100)/n;
   
   printf("1-18: %.2lf%%\n",x);
   printf("19-35: %.2lf%%\n",y);
   printf("36-60: %.2lf%%\n",z);
   printf("60??: %.2lf%%\n",w);
   

}
//************************************
//***????????**
//***??????**
//***???2012.10.4**
//************************************
int main()
{
	int n,i;                              //??n?????
	double M[4],y[100],m[4]={0,0,0,0};    //??M[]????????,y[]??????,m[]???????,??m[]????0                 
	cin >> n;                             //??n 
	for(i = 0 ; i < n ; i ++)             
	{
		cin >>y[i];                       //???y[i]???
		if (y[i] <= 18)                   //?y[i]???18
			m[0] ++;                      //m[0]????1
		else if (y[i] <= 35)              //?y[i]?[19,35]?
			m[1] ++;                      //m[1]????1
		else if (y[i] <= 60)              //?y[i]?[36,60]?
			m[2] ++;                      //m[2]????1
		else                              //???y[i]??60
			m[3] ++;                      //m[3]????1
	}
	cout << fixed << setprecision(2);     //???????????????
	for(i = 0 ; i<4 ; i ++)                
	{
		M[i]=(m[i]*100)/n;					  //???????????
	}
	cout << "1-18: "  << M[0] << "%" <<endl;     //?????1~18????????
	cout << "19-35: " << M[1] << "%" <<endl;     //?????19~35????????
	cout << "36-60: " << M[2] << "%" <<endl;     //?????36~60????????
	cout << "60??: "<< M[3] << "%" <<endl;     //??????60???????
	return 0;
}
int main()
{
	int n=0,i;
	int age[100]={0};
	double a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for (i=0;i<n;i++){
		scanf("%d",&age[i]);
		if(age[i]<19){
			a++;
		}
		if((18<age[i])&&(age[i]<=35)){
			b++;
		}
		if((35<age[i])&&(age[i]<=60)){
			c++;
		}
		if(age[i]>60) {
			d++;
		}
		/*printf("%d,%d,%d,%d",a,b,c,d);*/
	}
	/*printf("%d,%d,%d,%d",a,b,c,d);*/
	double p,q,r,s;
	p=a/n;
	q=b/n;
	r=c/n;
	s=d/n;
	printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\n60??: %.2lf%\n",p*100,q*100,r*100,s*100);


	return 0;
}
int main()
 {
	 int n,i;
	 int a[100],b[4]={0,0,0,0};
	 double c[4];
	 scanf("%d",&n);
	 for (i=0;i<n;i++)
	 {
		 scanf("%d",&a[i]);
	 if (a[i]>=1 && a[i]<=18)
		 b[0]++;
	 else if (a[i]>=19 && a[i]<=35)
		 b[1]++;
	 else if (a[i]>=36 && a[i]<=60)
		 b[2]++;
	 else
		 b[3]++;
	 }
	 for (i=0;i<4;i++)
	 {
		 //printf("%d\t",b[i]);
		 c[i]=(double)b[i]/n*100;
	 }
	 printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",c[0],c[1],c[2],c[3]);
	 return 0;
 }
int main(){
int x,i,y,a,b,c,d;
double a1,b1,c1,d1;
i=1,a=0,b=0,c=0,d=0;
scanf ("%d",&x);
while (i<=x){
scanf("%d",&y);
if (y<=18){
a=a+1;}
else if(y<=35&&y>=19){
b=b+1;}
else if(y<=60&&y>=36){
c=c+1;}
else if(y>=61){
d=d+1;}
i=1+i;
}
a1=a*1.0/x*100,b1=b*1.0/x*100,c1=c*1.0/x*100,d1=d*1.0/x*100;
printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",a1,b1,c1,d1);
return 0;
}
void main()
{
	int a[N],i,n;
	double s1,s2,s3,s4;
	s1=s2=s3=s4=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)
			s1++;
		else if(a[i]>=19 && a[i]<=35)
			s2++;
		else if(a[i]>=36 && a[i]<=60)
			s3++;
		else if(a[i]>60)
			s4++;
	}
	s1=s1/n*100;s2=s2/n*100;s3=s3/n*100;s4=s4/n*100;
	printf("1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%\n",s1,s2,s3,s4);
}
int main(){
	int n,i,x[100];
	double a=0,b=0,c=0,d=0;
		scanf("%d",&n);
		for(i=0;i<n;i++){
			scanf("%d",&x[i]);
		}for(i=0;i<n;i++){
			if(x[i]>=1&&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;
			}
		
		}
		double y=0;
		y=a+b+c+d;
		double e=0,f=0,g=0,h=0;
		e=(a/y)*100;
		f=(b/y)*100;
		g=(c/y)*100;
		h=(d/y)*100;
		printf("1-18: %.2lf%%\n",e);
		printf("19-35: %.2lf%%\n",f);
		printf("36-60: %.2lf%%\n",g);
		printf("60??: %.2lf%%\n",h);
		return 0;
}
int main()
{
	int i,n,o;
	double a=0,b=0,c=0,d=0,al,bl,cl,dl;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&o);
		if(o<19)
		{
			a+=1;
		}
		else if(o<36&&o>18)
		{
			b+=1;
		}
		else if(o<61&&o>35)
		{
			c+=1;
		}
		else if(o>60)
		{
			d+=1;
		}
	}
	al=100*a/n;
	bl=100*b/n;
	cl=100*c/n;
	dl=100*d/n;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",al,bl,cl,dl);
	return 0;
}
int main(){
	int n;
	int age;
	int a=0;
	int b=0;
	int c=0;
	int d=0;
	double aa;
	double bb;
	double cc;
	double dd;
	int i;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age);
		if(age<=18){
			a+=1;
		}
		else if(age<=35){
			b+=1;
		}
		else if(age<=60){
			c+=1;
		}
		else{
			d+=1;
		}
	}
	aa=a*100.0/n;
	bb=b*100.0/n;
	cc=c*100.0/n;
	dd=d*100.0/n;
	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;
}