semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
int a=0,b=0,c=0,d=0,n,i;
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]>=19&&sz[i]<=35)
   b++;
   else if(sz[i]>=36&&sz[i]<=60)
   c++;
   else if(sz[i]>60)
   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 n=0,i=0,age=0;
	double a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age);
		if(age<=18){
			a=a+1;
		}
		if((age>18)&&(age<=35)){
			b=b+1;
		}
		if((age>35)&&(age<=60)){
			c=c+1;
		}
		if(age>60){
			d=d+1;
		}
	}
	double A=0,B=0,C=0,D=0;
	A=((double)(a*100/n));
	B=((double)(b*100/n));
	C=((double)(c*100/n));
	D=((double)(d*100/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,i;
	int nianlin[100];
	int a=0,b=0,c=0,d=0;
	double e,f,g,h;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&nianlin[i]);
	}
	for(i=0;i<n;i++)
	{
		if(nianlin[i]<=18&&nianlin[i]>=1)
		{
			a+=1;
		}
		if(nianlin[i]<=35&&nianlin[i]>=19)
		{
			b+=1;
		}
		if(nianlin[i]<=60&&nianlin[i]>=36)
		{
			c+=1;
		}
		if(nianlin[i]>=61)
		{
			d+=1;
		}
	}
	e=a*1.0/n*100;
	f=b*1.0/n*100;
	g=c*1.0/n*100;
	h=d*1.0/n*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;
}
// ?????9.cpp : ??????????????
//?????
//???1200018415
int main()
{
	int k,i,y;
double a1 = 0,b1 = 0,c1 = 0,d1 = 0;                           //?????a1,b1,c1,d1????0
	cin>>k;                                                 //????
	double a,b,c,d;                                         //???????
	for(i = 1;i <= k;i++)                                       //????
	{
	cin>>y;                                              //????
		if(y <= 18)                                           //????
			a1++;                                            
		if((y >= 19) && (y <= 35))                                 //????
			b1++;                                              
		if((y >= 36) && (y <= 60))                                  //????
			c1++;                                               
		if(y >= 61)                                             //????
			d1++;                                               
	}
a=a1 / k * 100;                                                   //????????
b=b1 / k * 100;                                                   //?????????
c=c1 / k * 100;                                                     //?????????
d=d1 / k * 100;                                                       //?????????
cout<<"1-18: "<<fixed<<setprecision(2)<<a<<"%"<<endl;             
cout<<"19-35: "<<fixed<<setprecision(2)<<b<<"%"<<endl;            
cout<<"36-60: "<<fixed<<setprecision(2)<<c<<"%"<<endl;             
cout<<"60??: "<<fixed<<setprecision(2)<<d<<"%"<<endl;             //????
return 0;
}                                                                  //?????
int main() 
{
    double a,b,c,d,x,y,n;
    scanf("%lf",&x);
    y=1;
    a=0,b=0,c=0,d=0;
    while(x>=y){
    scanf("%lf",&n);
    if (n<=18){
    a=a+1;
    }
    else if (n>18&&n<=35){
    b=b+1;
    }
    else if (n>35&&n<=60){
    c=c+1;
    }
    else{
    d=d+1;
    }
    y=y+1;
    }
    a=1.0*a/x*100.0;
    b=1.0*b/x*100.0;
    c=1.0*c/x*100.0;
    d=1.0*d/x*100.0;
    printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",a,b,c,d);
    return 0;
}
int main()
{
	int n, x, i;
	double a = 0, b = 0, c = 0, d = 0;
	cin >> n;
	for ( i=1 ; i<=n; i++)
	{
		cin >> x;
	    if ((x >= 1) && (x <= 18)) a = a + 100.0 / n;
	    if ((x >= 19) && (x <= 35)) b = b + 100.0 / n;
		if ((x >= 36) && (x <= 60)) c = c + 100.0 / n;
		if ((x >= 61) && (x <= 100)) d = d + 100.0 / n;
	}
	cout << fixed << setprecision(2) << "1-18: " << a << "%"<< endl << "19-35: " << b << "%"<< endl << "36-60: " << c << "%"<< endl << "60??: " << d << "%";
	return 0;
}
int main()
{
   int n,i,a=0,b=0,c=0,d=0;
   double e,f,g,h,m,j,k,l;
   double age[100];
   scanf("%d",&n);
   for(i=0;i<n;i++){
   scanf("%lf",&age[i]);
   if(age[i]<=18){
	   a+=1;
   }
   if(age[i]>=19&&age[i]<=35){
	   b+=1;
   }
   if(age[i]>=36&&age[i]<=60){
	   c+=1;
   }
   else if(age[i]>=61){
	   d+=1;
   }
   e=(double)a/n;
   f=(double)b/n;
   g=(double)c/n;
   h=(double)d/n;
   m=100*e;
   j=100*f;
   k=100*g;
   l=100*h;
   }
   printf("1-18: %.2lf%\n",m);
   printf("19-35: %.2lf%\n",j);
   printf("36-60: %.2lf%\n",k);
   printf("60??: %.2lf%\n",l);
   return 0;
}
int main(){
    int n;
    scanf("%d",&n);
    int a=0;
    int b=0;
    int c=0;
    int d=0;
    int nl[100];
    for(int i=0;i<n;i++){
        scanf("%d",&nl[i]);
    }
    for(int i=0;i<n;i++){
        if(nl[i]<=18){
            a++;
        }
        if(nl[i]>=19&&nl[i]<=35){
            b++;
        }
        if(nl[i]>=36&&nl[i]<=60){
            c++;
        }
        if(nl[i]>60){
            d++;
        }
    }
    double e,f,g,h;
    e=(double)a/n*100;
    f=(double)b/n*100;
    g=(double)c/n*100;
    h=(double)d/n*100;
    printf("1-18: %.2lf%%\n",e);
    printf("19-35: %.2lf%%\n",f);
    printf("36-60: %.2lf%%\n",g);
    printf("Over60: %.2lf%%",h);
    return 0;
    
}
void main()
{
	int a[100];
	int i,n;
	float m=0,j=0,p=0,q=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	for(i=0;i<n;i++)
	{
		if(a[i]<=18) m=m+1;
		else if(a[i]<=35) j=j+1;
		else if(a[i]<=60) p=p+1;
		else q=q+1;
	}
	printf("1-18: %.2f%%\n",100*m/n);
	printf("19-35: %.2f%%\n",100*j/n);
	printf("36-60: %.2f%%\n",100*p/n);
	printf("60??: %.2f%%\n",100*q/n);
}
void main()
{
	int n,i,a[100];
	double j=0,k=0,m=0,p=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)
			j=j+1;
		else if(a[i]<=35)
			k=k+1;
		else if(a[i]<=60)
			m=m+1;
		else p=p+1;
	}
	j=j/n*100;
	k=k/n*100;
	m=m/n*100;
	p=p/n*100;
	printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\n60??: %.2lf%",j,k,m,p);
}
void main()
{
	int a[100],n,i,j=0,k=0,l=0,m=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	scanf("%d",&a[i]);
	for(i=0;i<n;i++)
	{
		
		if(a[i]<=18)
			j++;
		else if(a[i]<=35)
			k++;
		else if(a[i]<=60)
			l++;
		else
			m++;
	}
	printf("1-18: ");
	printf("%.2f%%\n",(float)j/n*100);
printf("19-35: ");
printf("%.2f%%\n",(float)k/n*100);
	   

printf("36-60: ");
printf("%.2f%%\n",(float)l/n*100);	   
printf("60??: ");
printf("%.2f%%\n",(float)m/n*100);
}
int main() {
	int i, n;
	double a = 0, b = 0, c = 0, d = 0;//??????
	char e = '%';
	cin >> n;
	int l[n];
	for (i = 0; i < n; i++) {//??????
		cin >> l[i];
		if (l[i] <= 18 && l[i] >= 1)
			a++;
		if (l[i] <= 35 && l[i] >= 19)
			b++;
		if (l[i] <= 60 && l[i] >= 36)
			c++;
		if (l[i] >= 61)
			d++;
	}
	a = 100 * a / n;
	b = 100 * b / n;
	c = 100 * c / n;
	d = 100 * d / n;
	printf("1-18: %.2f%c\n19-35: %.2f%c\n36-60: %.2f%c\n60??: %.2f%c", a, e, b, e,
			c, e, d, e);
	return 0;
}
int main()
{
	int n,i;
	double a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	int s[100]={0};
	for(i=0;i<n;i++)
	{
		scanf("%d",&(s[i]));
		if(s[i]<=18)
		{
			a++;
		}
		if((s[i]<=35)&&(s[i]>18))
		{
			b++;
		}
		if((s[i]<=60)&&(s[i]>35))
		{
			c++;
		}
		if(s[i]>60)
		{
			d++;
		}
	}
	a/=n;
	b/=n;
	c/=n;
	d/=n;
	
	printf("1-18: %.2lf%%\n",a*100.0);
	printf("19-35: %.2lf%%\n",b*100.0);
	printf("36-60: %.2lf%%\n",c*100.0);
	printf("60??: %.2lf%%\n",d*100.0);
	return 0;
}
int main()
{
	int n,b[100],i;
	int sum1=0,sum2=0,sum3=0,sum4=0;
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
		scanf("%d",&b[i]);
	}
	for(i=0;i<n;i++){
		if(b[i]<=18) sum1++;
		else if(b[i]>=19&&b[i]<=35) sum2++;
		else if(b[i]>=36&&b[i]<=60) sum3++;
		else sum4++;
	}
	double a,B,c,d;
	a=100*(double)sum1/n;
	B=100*(double)sum2/n;
	c=100*(double)sum3/n;
	d=100*(double)sum4/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,a[1000],i;
	double d=0,e=0,f=0,g=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<=18)
		{
			d+=1;
		}
		else if(a[i]<=35)
		{
			e+=1;
		}
		else if(a[i]<=60)
		{
			f+=1;
		}else
		{
			g+=1;
		}
	}
	printf("1-18: %.2lf%%\n",d*100/n);
	printf("19-35: %.2lf%%\n",e*100/n);
	printf("36-60: %.2lf%%\n",f*100/n);
	printf("60??: %.2lf%%\n",g*100/n);
	return 0;
}
int main()
{
	double n,a=0,b=0,c=0,d=0,x,ave1,ave2,ave3,ave4;
	scanf("%lf\n",&n);
	while(n>0){
		scanf("%lf",&x);
		if(x>=1&&x<=18)
			a+=1;
		if(x>=19&&x<=35)
			b+=1;
		if(x>=36&&x<=60)
			c+=1;
		if(x>60)
			d+=1;
		n=n-1;
	}
	ave1=a/(a+b+c+d)*100;
	ave2=b/(a+b+c+d)*100;
	ave3=c/(a+b+c+d)*100;
	ave4=d/(a+b+c+d)*100;
	printf("1-18: %.2lf%%\n",ave1);
	printf("19-35: %.2lf%%\n",ave2);
	printf("36-60: %.2lf%%\n",ave3);
	printf("60??: %.2lf%%\n",ave4);
	return 0;
}
int main(){
	int a=0,b=0,c=0,d=0;
	int n,age;
	int i;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age);
		
		if(age<=18){
			a++;
			}
		else if (age>=19&&age<36){
			b++;
			}
		else if (age>=36&&age<=60){
			c++;
		}
	else if(age>60){
			d++;
			}
		
	}
	printf("1-18: %.2lf",a*100.0/n);
	printf("%%\n");
    printf("19-35: %.2lf",b*100.0/n);
	printf("%%\n");
    printf("36-60: %.2lf",c*100.0/n);
	printf("%%\n");
    printf("60??: %.2lf",d*100.0/n);
	printf("%%\n");
	return 0;
}
int main()
{
	int n, i=0, sum1=0, sum2=0, sum3=0, sum4=0;
	int age[100];
	double per1, per2, per3, per4;
	scanf("%d", &n);
	for(i=0;i<n;i++)
	{
		scanf("%d", &age[i]);
		if(age[i]<=18)
		{
			sum1+=1;
		}else
		{
			if(age[i]>=19&&age[i]<=35)
			{
				sum2+=1;
			}else
			{
				if(age[i]>=36&&age[i]<=60)
				{
					sum3+=1;
				}else
				{
					sum4+=1;
				}
			}
		}
	}
	per1=sum1*1.0/n*100;
	per2=sum2*1.0/n*100;
	per3=sum3*1.0/n*100;
	per4=sum4*1.0/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%", per1, per2, per3, per4);
	return 0;
}
int main()
{  int a[100],n,i;
   double s1=0,s2=0,s3=0,s4=0;
   scanf("%d",&n);
   for(i=0;i<n;i++)
	   scanf("%d",&a[i]);
   for(i=0;i<n;i++)
   {if(a[i]<=18)
      s1=s1+1;
   else if(a[i]>=19&&a[i]<=35)
	   s2=s2+1;
   else if(a[i]>=36&&a[i]<=60)
	   s3=s3+1;
   else s4=s4+1;
   }
   printf("1-18: %.2lf%%\n",s1/n*100);
   printf("19-35: %.2lf%%\n",s2/n*100);
   printf("36-60: %.2lf%%\n",s3/n*100);
   printf("60??: %.2lf%%\n",s4/n*100);


	return 0;
}
void main()
{
	int n,i,a[100];
	double g,k,t,m,b,c,d,f;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	scanf("%d",&a[i]);
	for(i=0,k=0,t=0,m=0,b=0;i<n;i++)
	{
		if(a[i]>=1&&a[i]<=18)
			k=k+1;
		if(a[i]>=19&&a[i]<=35)
			t=t+1;
		if(a[i]>=36&&a[i]<=60)
			m=m+1;
		else if(a[i]>=60)
			b=b+1;
	}
	g=k/n*100;
	c=t/n*100;
	d=m/n*100;
	f=b/n*100;
    printf("1-18: %.2lf%%\n",g);
	 printf("19-35: %.2lf%%\n",c);
	  printf("36-60: %.2lf%%\n",d);
	   printf("60??: %.2lf%%\n",f);
}
int main()
{
	int n,i;
	double a,q=0,w=0,e=0,r=0;
	scanf("%d",&n);
	double z,x,c,v;
	for(i=1;i<=n;i++)
	{
		
		scanf("%lf",&a);
		if(a>=1&&a<=18)
		{q++;}
		else if(a>=19&&a<=35)
		{w++;}
		else if(a>=36&&a<=60)
		{e++;}
		else
		{r++;}
      }
	z=(q/n)*100;
	x=(w/n)*100;
	c=(e/n)*100;
	v=(r/n)*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",z,x,c,v);
	return 0;
}
int main()
{
	int n,p[100],a=0,b=0,c=0,d=0,i;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&p[i]);
	}
	for(i=0;i<n;i++){
		if(p[i]<=18){
			a++;
		}
		else if(p[i]>=19&&p[i]<=35){
			b++;
		}
		else if(p[i]>=36&&p[i]<=60){
			c++;
		}
		else{
			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;
}
int main(int argc, char *argv[])
{
	int n,i,age,one=0,two=0,three=0,four=0;
	double on,tw,th,fo;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age);
		if(age<19)	one++;
		else if(age<36)	two++;
		else if(age<61)	three++;
		else	four++;
	}
	on=(double)100*one/n;
	tw=(double)100*two/n;
	th=(double)100*three/n;
	fo=(double)100*four/n;
	printf("\n1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%",on,tw,th,fo);
	return 0;
}
void main()
{
	int a[100];
	int n,i;
	float c[4],b[4]={0};
	scanf("%d",&n);
	for(i=0;i<=n-1;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<=18)
			b[0]++;
		else if(a[i]<=35)
			b[1]++;
		else if(a[i]<=60)
			b[2]++;
		else
			b[3]++;
	}
	for(i=0;i<=3;i++)
        c[i]=100*b[i]/n;
	printf("1-18: %.2f%%\n",c[0]);
	printf("19-35: %.2f%%\n",c[1]);
	printf("36-60: %.2f%%\n",c[2]);
	printf("60??: %.2f%%\n",c[3]);
}
int main()
{
    int a,b,c,d,i,n,p;
    a=b=c=d=0;
    scanf("%d",&n);
    for(i=0;i<n;i++)
    {
        scanf("%d",&p);
        if(p<=18)
        a++;
        else if(p>=19&&p<=35)
        b++;
        else if(p>=36&&p<=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 i,n,u18,u35,u60,up60;
u18=0;
u35=0;
u60=0;
up60=0;
double un18,un35,un60,upper60;
i=1;
scanf("%d",&n);
while(i<=n){
int x;
scanf("%d",&x);
if(x<=18){
u18++;
i++;}
else if(x>18&&x<=35){
u35++;
i++;}
else if(x>35&&x<=60){
u60++;
i++;}
else if(x>60){
up60++;
i++;}
else{
u35++;
i++;}
}
un18=100.0*u18/n;
un35=100.0*u35/n;
un60=100.0*u60/n;
upper60=100.0*up60/n;
printf("1-18: %.2lf%%\n",un18);
printf("19-35: %.2lf%%\n",un35);
printf("36-60: %.2lf%%\n",un60);
printf("60??: %.2lf%%\n",upper60);

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



return 0;

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

	return 0;
}
int main() {  
    int i,n,p;
    double a,b,c,d;
    n>=0&&n<=100;
    scanf("%d",&n);
    a=b=c=d=0;
    for (i=0;i<n;i++)
    {
        scanf("%d",&p);
        if(p<=18)
        a++;
        else if(p>=19&&p<=35)
        b++;
        else if(p>=36&&p<=60)
        c++;
        else if(p>=61)
        d++;
    }
    a=a/n*100;
    b=b/n*100;
    c=c/n*100;
    d=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 i,n,x;
double a,b,c,d,e,f,g,h;
scanf("%d",&n);
for (i=1;i<=n;i++) {
scanf("%d",&x);
if (x<19) a++;
else if (x<36) b++;
else if (x<61) c++;
else d++;
}
e=a/n*100;
f=b/n*100;
g=c/n*100;
h=d/n*100;
printf("1-18: %.2lf%%\n",e);
printf("19-35: %.2lf%%\n",f);
printf("36-60: %.2lf%%\n",g);
printf("60??: %.2lf%%\n",h);
}
int main()
{
	int i,n,x=0,y=0,z=0,p=0,a;
	double X,Y,Z,P;
	scanf("%d\n",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a);
	
		if(a>=1&&a<=18)x++;
		if(a>=19&&a<=35)y++;
		if(a>=36&&a<=60)z++;
		if(a>60)p++;
		
	}
	X=1.0*x/n*100;
	Y=1.0*y/n*100;
	Z=1.0*z/n*100;
	P=1.0*p/n*100;
	
	printf("1-18: %.2lf%%\n",X);
	printf("19-35: %.2lf%%\n",Y);
    printf("36-60: %.2lf%%\n",Z);
    printf("60??: %.2lf%%",P);
	
	return 0;


	

}
int main (){
    int i,m,a=0,b=0,c=0,d=0;
	int yer[100];
	double q,w, e,r;
	scanf ("%d",&m);
for( i=0;i<m;i++){
		scanf("%d", &(yer[i]));
	}
 for(i=0 ;i<m;i++){
	 if(yer[i]<=18){
		 a+=1;
	 }else if(19<=yer[i]&&yer[i]<=35){
		 b+=1;
	 }else if(36<=yer[i]&&yer[i]<=60){
		 c+=1;
		 }else{
			 d+=1;
		 }
	}
            q=100.0*a/m;
			w=100.0*b/m;
			e=100.0*c/m;
			r=100.0*d/m;
        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 n,m,a=0,b=0,c=0,d=0,i=1;
	  double e,f,g,h;
	  scanf("%d",&n);
	  for(i=1;i<=n;i++){
	scanf("%d",&m);
	if(m>0&&m<=18){
			  a+=1;
		  }else if(m>18&&m<=35){
		  b+=1;
			  }else if(m>35&&m<=60){
				  c+=1;
			  }else if(m>60){
				  d+=1;
			  }
	  }
	  printf("1-18: %.2lf%%\n",e=100.00*a/n);
	  printf("19-35: %.2lf%%\n",f=100.00*b/n);
	  printf("36-60: %.2lf%%\n",g=100.00*c/n);
	  printf("60??: %.2lf%%\n",h=100.00*d/n);
	  return 0;
  }
void main()
{
	int i,n,y[100]={0},a=0,b=0,c=0,d=0;
	double aa,bb,cc,dd;
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%d",&y[i]);
		if (y[i]<=18) a=a+1;
		else if (y[i]<=35) b=b+1;
		else if (y[i]<=60) c=c+1;
		else d=d+1;
	}
	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: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%\n",aa,bb,cc,dd);
}
int main()
{
	int n;
	int nianling[100];
	int n18,sum18=0;
	int n19,sum19=0;
	int n36,sum36=0;
	int n61,sum61=0;
	int i;
	double p18,p19,p36,p61;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&nianling[i]);
		if(nianling[i]<=18)
		{
			sum18+=1;
		}
		if(nianling[i]>=19&&nianling[i]<=35)
		{
			sum19+=1;
		}
		if(nianling[i]>=36&&nianling[i]<=60)
		{
			sum36+=1;
		}
		if(nianling[i]>=61)
		{
			sum61+=1;
		}
	}
	p18=(double)sum18/(double)n*100.0;
	p19=(double)sum19/(double)n*100.0;
	p36=(double)sum36/(double)n*100.0;
	p61=(double)sum61/(double)n*100.0;
	printf("1-18: %.2lf%%\n",p18);
	printf("19-35: %.2lf%%\n",p19);
    printf("36-60: %.2lf%%\n",p36);
    printf("60??: %.2lf%%\n",p61);
	return 0;
}
void main()
{
 int a[100],b,c,d,i,j,k,n;
 double w=0,x=0,y=0,z=0;
 scanf("%d",&n);
 for(i=0;i<n;i++)
 scanf("%d",&a[i]);
 for(i=0;i<n;i++)
 {
  if(a[i]<19) w=w+1;
  if(a[i]>18&&a[i]<36) x=x+1;
  if(a[i]>35&&a[i]<61) y=y+1;
  if(a[i]>60) z=z+1;
 }
 w=w/n*100;
 x=x/n*100;
 y=y/n*100;
 z=z/n*100;
printf("1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%\n",w,x,y,z);
}
int main(){
    int sz[100];
	int n;
	int i;
	double a,b,c,d;
	double A,B,C,D;
	scanf("%d",&n);
	for(i=0;i<n;i++){
	  scanf("%d",&(sz[i]));
	}
	a=0;b=0;c=0;d=0;
	for(i=0;i<n;i++){
		if((sz[i]>=1)&&(sz[i]<=18)){
			a++;
		}else if((sz[i]>=19)&&(sz[i]<=35)){
			b++;
		}else if((sz[i]>=36)&&(sz[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%%\n",A);
	printf("19-35: %.2lf%%\n",B);
	printf("36-60: %.2lf%%\n",C);
	printf("Over60: %.2lf%%\n",D);
	
return 0;
}
void main()
{
	int n,a=0,b=0,c=0,d=0,i,t;
	scanf("%d",&n);
	for(i=0;i<=n-1;i++)
	{
		scanf("%d",&t);
		if(t<=18)
			a++;
		else if(t>=19&&t<=35)
			b++;
		else if(t>=36&&t<=60)
			c++;
		else if(t>=61)
			d++;
	}
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",(double)a/(double)n*100,(double)b/(double)n*100,(double)c/(double)n*100,(double)d/(double)n*100);
}
int main(){
	int n,i,e=0,d=0,f=0,g=0,k=0,a;
	scanf("%d",&n);
	for (i=0;i<n;i++){
		scanf("%d",&a);
		if(a<=18){
			e++;
		}
		if(a>=19&&a<=35){
			d++;
		}
		if(a>=36&&a<=60){
			f++;
		}
		if(a>=61) {
			g++;
		}
	}
	k=e+d+f+g;
	double x,y,z,w;
	x=(double)e/k*100;
    y=(double)d/k*100;
    z=(double)f/k*100;
    w=(double)g/k*100;
	printf("1-18: %.2lf%%\n",x);
    printf("19-35: %.2lf%%\n",y);
    printf("36-60: %.2lf%%\n",z);
    printf("60??: %.2lf%%\n",w);
	return 0;
}
int main ()
{
	int n;
	int tmp;
	int i;
	int  s1=0,s2=0,s3=0,s4=0;
	scanf("%d\n",&n);
	for(i=0;i<n;i++){ 
		scanf("%d",&tmp);
		if(tmp>=1&&tmp<=18){
         s1++; 
		}
		else if (tmp>=19&&tmp<=35){
			s2++;
		}
		else if(tmp>=36&&tmp<=60){
			s3++;
		}
		else if(tmp>=61){
			s4++;
		}
	}
	int s;
	s=s1+s2+s3+s4;
	printf("1-18: %.2lf%%\n",(double)100*s1/s);
	printf("19-35: %.2lf%%\n",(double)100*s2/s);
	printf("36-60: %.2lf%%\n",(double)100*s3/s);
	printf("60??: %.2lf%%",(double)100*s4/s);
       return 0;
}
int main()
{
	int n,i,a=0,b=0,c=0,e=0,m[100];
	double a1,b1,c1,e1;

		scanf("%d",&n);
		for(i=1;i<=n;i++)
		{
			scanf("%d",&m[i]);
		}
		for(i=1;i<=n;i++)
		{
			if(m[i]<19)
			{a=a+1;}
			else if((m[i]>18)&&(m[i]<36))
			{b=b+1;}
            else if((m[i]>35)&&(m[i]<61))
			{c=c+1;}
			else if(m[i]>60)
			{e=e+1;}


		}
		a1=(double)a/n;
		b1=(double)b/n;
	    c1=(double)c/n;
		e1=(double)e/n;
		printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",a1*100,b1*100,c1*100,e1*100);
		return 0;

}
int main()
{
	int i;
	double n,m=0,t=0,x=0,y=0,age[100];
	scanf("%lf",&n);
    for(i=0;i<n;i++)
	scanf("%lf",&age[i]);
	for(i=0;i<n;i++)
	{if(age[i]<=18)
	{
		m=m+1;
	}if(age[i]>18&&age[i]<=35)
	{
		t=t+1;
	}
	if(age[i]>35&&age[i]<=60)
	{
		x=x+1;
	}else if(age[i]>60)
	{
		y=y+1;
	}
	}
	printf("1-18: %.2lf",m/n*100);printf("%%\n");
	printf("19-35: %.2lf",t/n*100);printf("%%\n");
	printf("36-60: %.2lf",x/n*100);printf("%%\n");
	printf("60??: %.2lf",y/n*100);printf("%%\n");
    return 0;
}
int main(){
 int i,s1,s2,s3,s4,n,x;
 double c1,c2,c3,c4;
 scanf("%d\n",&n);
 s1=0;s2=0;s3=0;s4=0;
 for (i=1;i<=n;i=i+1){
 scanf("%d",&x);
 if (x<=18) s1++;
 else if (x>18&&x<=35) s2++;
 else if (x>35&&x<=60) s3++;
 else s4++;
 }
 c1=1.0*s1/n*100;
 c2=1.0*s2/n*100;
 c3=1.0*s3/n*100;
 c4=1.0*s4/n*100;
 printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",c1,c2,c3,c4);
 return 0;
}
int main(){
	int n;
	int num;
	int i=1;
	int p=0,q=00,u=0,t=0;
	double a,b,c,d;
	scanf("%d\n",&n);
	while(i<=n){
		scanf("%d",&num);
		if((num>=1)&&(num<=18)){
			p+=1;
		}else if((num>=19)&&(num<=35)){
			q+=1;
		}else if((num>=36)&&(num<=60)){
			u+=1;
		}else{
			if((num>60)&&(num<=100)){

			t+=1;
			}
		}
		i++;
	}
	a=p*1.0/n*100;
	b=q*1.0/n*100;
	c=u*1.0/n*100;
	d=t*1.0/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,age;
    scanf("%d",&n);
	double a=0,b=0,c=0,d=0;
    for(i=0;i<n;i++){
		scanf("%d",&age);
		if(age<19){
			a=a+1;
		}else if(age<36){
			b=b+1;
		}else if(age<61){
			c=c+1;
		}else{
			d=d+1;
		}
	}
	a=a/n*100;
	b=b/n*100;
	c=c/n*100;
	d=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;
}
void main()
{
	int n, a[100], t1, t2, t3, t4, sum, i;

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

	t1 = 0;
	t2 = 0;
	t3 = 0;
	t4 = 0;
	sum = 0;
	for(i=0; i<n; i++)
	{
		if(a[i]>=1 && a[i]<=18)
		{
			t1++;
			sum++;
		}
		else if(a[i]<=35)
		{
			t2++;
			sum++;
		}
		else if(a[i]<=60)
		{
			t3++;
			sum++;
		}
		else
		{
			t4++;
			sum++;
		}
	}
	printf("1-18: %.2f%%\n", (float)t1/sum*100);
	printf("19-35: %.2f%%\n", (float)t2/sum*100);
	printf("36-60: %.2f%%\n", (float)t3/sum*100);
	printf("60??: %.2f%%\n", (float)t4/sum*100);
}
int main(){
int n,i,e[100];
double a,b,d,c;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&e[i]);
if(e[i]<=18&&e[i]>=1){
b++;}
else if(e[i]>=19&&e[i]<=35){
a++;}
else if(e[i]>=36&&e[i]<=60)
{
c++;}
else{d++;}
}
printf("1-18: %.2lf%%\n",b*100/n);
printf("19-35: %.2lf%%\n",a*100/n);
printf("36-60: %.2lf%%\n",c*100/n);
printf("Over60: %.2lf%%\n",100-b*100/n-a*100/n-c*100/n);
return 0;
}
void main()
{
	int n,a[100],i;
	double b[4]={0};
	scanf("%d",&n);
	printf("\n");
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<19)b[0]++;
		else if(a[i]<36)b[1]++;
		else if(a[i]<61)b[2]++;
		else b[3]++;
	}
	printf("1-18: %.2lf%\n",b[0]/n*100);
	printf("19-35: %.2lf%\n",b[1]/n*100);
	printf("36-60: %.2lf%\n",b[2]/n*100);
	printf("60??: %.2lf%\n",b[3]/n*100);
}