semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
void main()
{
	int p[100]={0},n1=0,n2=0,n3=0,n4=0,i,n;
    double b1=0,b2=0,b3=0,b4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&p[i]);
	}
	for(i=0;i<n;i++)
	{
		if(p[i]>=0&&p[i]<=18)
			n1++;
		else if(p[i]>=19&&p[i]<=35)
			n2++;
        else if(p[i]>=36&&p[i]<=60)
			n3++;
         else if(p[i]>=61)
			n4++;
	}
	b1=(double)n1/n*100;
b2=(double)n2/n*100;
b3=(double)n3/n*100;
b4=(double)n4/n*100;
printf("1-18: %.2f",b1);
printf("%%\n");
printf("19-35: %.2f",b2);
printf("%%\n");
printf("36-60: %.2f",b3);
printf("%%\n");
printf("60??: %.2f",b4);
printf("%%");
}
void main()
{
	int n,i;
	int a[100];
	double b[4],c[4]={0};
	double m;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<=18) c[0]++;
		else if(a[i]>18&&a[i]<=35) c[1]++;
		else if(a[i]>35&&a[i]<=60) c[2]++;
		else c[3]++;
	}
	m=n;
	for(i=0;i<n;i++)
		b[i]=c[i]*100/m;
	printf("1-18: %.2lf%%\n",b[0]);
	printf("19-35: %.2lf%%\n",b[1]);
	printf("36-60: %.2lf%%\n",b[2]);
	printf("60??: %.2lf%%",b[3]);
}
int main()
{
	int n,i;
	scanf("%d",&n);
	int age[100];
	int a=0,b=0,c=0,d=0;
	for(i=0;i<n;i++)
	{
		scanf("%d",&age[i]);
		if(age[i]<=18)
			a++;
		else if(age[i]>18&&age[i]<=35)
			b++;
		else if(age[i]>35&&age[i]<=60)
			c++;
		else
			d++;
	}
	printf("1-18: %.2lf",(a*1.00)*100/n);
	printf("%%\n");
	printf("19-35: %.2lf",(b*1.00)*100/n);
	printf("%%\n");
	printf("36-60: %.2lf",(c*1.00)*100/n);
	printf("%%\n");
	printf("60??: %.2lf",(d*1.00)*100/n);
	printf("%%\n");
	return 0;
}
void main()
{
	int n,i,b=0,c=0,d=0,e=0,a[100]={0};
	double f,g,h,j;
	scanf("%d",&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]>=61)e++;
	}
	f=(double)b/n;
	g=(double)c/n;
	h=(double)d/n;
	j=(double)e/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");

}
int main(){
    int n,i;
	int sz[SIZE];
	double w,a,s,d;
	w=a=s=d=0;
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
	scanf("%d",&(sz[i]));
	}
for(i=0;i<n;i++){
	if(sz[i]<=18){
		w+=1;
	}else if(sz[i]<=35){
      a+=1;
}else if(sz[i]<=60){
      s+=1;
}else{
     d+=1;
}
}
    w=w*100/n;
	a=a*100/n;
	s=s*100/n;
	d=d*100/n;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\nOver60: %.2lf%%",w,a,s,d);
 return 0;
}
int main()
{
	int n,a[100],i,m=0,k=0,p=0,q=0;
	scanf("%d",&n);
		for(i=0;i<n;i++){
			scanf("%d",&a[i]);
			if(a[i]>=1&&a[i]<=18)
				m++;
            if(a[i]>=19&&a[i]<=35)
				k++;
            if(a[i]>=36&&a[i]<=60)
				p++;
            if(a[i]>60)
				q++;
		}
		printf("1-18: ");
			printf("%.2lf",(double)m/n*100);
			printf("%%\n");
        printf("19-35: ");
			printf("%.2lf",(double)k/n*100);
            printf("%%\n");
        printf("36-60: ");
			printf("%.2lf",(double)p/n*100);
        printf("%%\n");
        printf("60??: ");
			printf("%.2lf",(double)q/n*100);
        printf("%%\n");

	return 0;
}
int main()
{
	int a[100],n=0;
	int i=0,e=0,b=0,c=0,d=0;

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

	for(i=0;i<n;i++){
		if(a[i]<19 && a[i]>0){
			e++;
		}
		else if(a[i]<36 && a[i]>18){
			b++;
		}
		else if(a[i]<61 && a[i]>35){
			c++;
		}
		else if(a[i]>60){
			d++;
		}
	}
	double a1=e*100.00/n;
	double b1=b*100.00/n;
	double c1=c*100.00/n;
	double d1=d*100.00/n;

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

	return 0;
}
int main()
{
	int n,i;
	int a=0,b=0,c=0,d=0;
	double rate[4];
	scanf("%d",&n);
	int *age=(int *)malloc(sizeof(int)*n);
	
	for(i=0;i<n;i++)
	{
			scanf("%d",&(age[i]));
	}
	for(i=0;i<n;i++)
	{
		if(age[i]<=18)
			a++;
		if(age[i]>=19&&age[i]<=35)
			b++;
        if(age[i]>=36&&age[i]<=60)
			c++;
		if(age[i]>=61)
			d++;
	}
	rate[0]=(double)a/(double)n*100;
	rate[1]=(double)b/(double)n*100;
	rate[2]=(double)c/(double)n*100;
	rate[3]=(double)d/(double)n*100;
    printf("1-18: %.2lf%%\n",rate[0]);
    printf("19-35: %.2lf%%\n",rate[1]);
    printf("36-60: %.2lf%%\n",rate[2]);
    printf("60??: %.2lf%%\n",rate[3]);
	free(age);
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int a[p],i;
	double x=0.0,y=0.0,z=0.0,t=0.0;
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<=18)
		{
			x++;
		}
		else if(a[i]>18&&a[i]<36)
		{
			y++;
		}
		else if(a[i]>35&&a[i]<61)
		{
			z++;
		}
		else if(a[i]>60)
		{
			t++;
		}
	}
		x=100.0*x/n;
		y=100.0*y/n;
		z=100.0*z/n;
		t=100.0*t/n;
	
	printf("1-18: %.2lf%%\n",x);
	printf("19-35: %.2lf%%\n",y);
	printf("36-60: %.2lf%%\n",z);
	printf("60??: %.2lf%%\n",t);
	return 0;
}
int main()
{
int n,i,nl[100],a=0,b=0,c=0,d=0;
double q,w,e,r;
scanf("%d",&n);
for(i=0;i<n;i++){
 scanf("%d",&nl[i]);
 if(nl[i]>0&&nl[i]<19)
	 a++;
 else if (nl[i]>18&&nl[i]<36)
	 b++;
     else if (nl[i]>35&&nl[i]<61)
		 c++;
	     else d++;
}
q=a*1.0/n;
w=b*1.0/n;
e=c*1.0/n;
r=d*1.0/n;
printf("1-18: %.2lf%%\n",q*100);
printf("19-35: %.2lf%%\n",w*100);
printf("36-60: %.2lf%%\n",e*100);
printf("60??: %.2lf%%\n",r*100);
return 0;
}
int main(int argc, char* argv[])
{
	int a[max];
	int	b[4]={0};
	int i,m;
	float c[4];
	scanf("%d",&m);          //0=<m<=100//
	for(i=0;i<m;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 if(a[i]>60)
          b[3]++;
	}
	for(i=0;i<4;i++)
	{
		c[i]=b[i]*1.0/m*1.0*100;
	}
    printf("1-18: %.2f%%\n",c[0]);
	printf("19-35: %.2f%%\n",c[1]);
    printf("36-60: %.2f%%\n",c[2]);
	printf("60??: %.2f%%",c[3]);
	return 0;
}
int main(int argc, char* argv[])
{
	int n,a[1000],i,c[4]={0},l;
	double t[4];
	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)
			c[0]=c[0]+1;
		else if(a[i]>=19&&a[i]<=35)
			c[1]=c[1]+1;
		else if(a[i]>=36&&a[i]<=60)
			c[2]=c[2]+1;
		else 
			c[3]=c[3]+1;
	}
	l=c[0]+c[1]+c[2]+c[3];
	for(i=0;i<4;i++)
	t[i]=((c[i]*1.0)/l)*100;
	printf("1-18: %.2lf%%\n",t[0]);
	printf("19-35: %.2lf%%\n",t[1]);
	printf("36-60: %.2lf%%\n",t[2]);
	printf("60??: %.2lf%%\n",t[3]);
	return 0;
}
int main(){
	int i,n,x1=0,x2=0,x3=0,x4=0;
	double y1,y2,y3,y4;
	int sz[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&(sz[i]));
		if(sz[i]<=18){
			x1=x1++;
		}
		else if(sz[i]>=19&&sz[i]<=35){
			x2=x2++;
	}
		else if(sz[i]>=36&&sz[i]<=60){
			x3=x3++;
		}
		else if(sz[i]>=61){
			x4=x4++;
		}
	}
	y1=(double)x1*100/n;
	y2=(double)x2*100/n;
	y3=(double)x3*100/n;
	y4=(double)x4*100/n;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",y1,y2,y3,y4);
	return 0;
}
int main()
{
	int n,i,a[1000],b1=0,b2=0,b3=0,b4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<=18)
		{
			b1+=1;
		}
		else if((a[i]>=19)&&(a[i]<=35))
		{
			b2+=1;
		}
		else if((a[i]>=36)&&(a[i]<=60))
		{
			b3+=1;
		}
		else if(a[i]>60)
		{
			b4+=1;
		}
	}
	int sum=0;
	double c1,c2,c3,c4;
	sum=b1+b2+b3+b4;
	c1=(double)b1/sum*100;
	c2=(double)b2/sum*100;
	c3=(double)b3/sum*100;
	c4=(double)b4/sum*100;
	printf("1-18: %.2lf%%\n",c1);
	printf("19-35: %.2lf%%\n",c2);
	printf("36-60: %.2lf%%\n",c3);
	printf("60??: %.2lf%%\n",c4);
	return 0;
}
int main()
{
	int n,i,age[100];
	int a=0,b=0,c=0,d=0;
	scanf("%d",&n);

	for(i=0;i<n;i++){
		scanf("%d",&age[i]);
	}
    for(i=0;i<n;i++){
  
		if (age[i]<=18)
			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]>=61)
			d=d+1;
	}
	printf("\n1-18: %.2f%%",(double)a/n*100);
	printf("\n19-35: %.2f%%",(double)b/n*100);
	printf("\n36-60: %.2f%%",(double)c/n*100);
	printf("\n60??: %.2f%%",(double)d/n*100);
	return 0;
}
int main(){
	int n,i;
	int num[4]={0},pat[101]={0};
	double rate[4];
	scanf("%d",&n);
	for (i=0;i<n;i++){
		scanf("%d",&pat[i]);
	}
	for (i=0;i<n;i++){
		if (pat[i]<=18)
			num[0]++;
		if (pat[i]>=19&&pat[i]<=35)
			num[1]++;
		if (pat[i]>=36&&pat[i]<=60)
			num[2]++;
		if (pat[i]>=61)
			num[3]++;
	}
	for(i=0;i<4;i++){
		rate[i]=100.0*num[i]/n;
	}
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",rate[0],rate[1],rate[2],rate[3]);
	return 0;
}
int main(int argc, char* argv[])
{
	int n;
	scanf("%d",&n);
	int i,age[100];
	double a=0,b=0,c=0,d=0;
	for(i=0;i<n;i++)
	{
		scanf("%d",&age[i]);
		if(age[i]<=18)a++;
		if(age[i]>=19&&age[i]<=35)b++;
		if(age[i]>=36&&age[i]<=60)c++;
		if(age[i]>60)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 n,a,b,c,d,x,i;
	double e,f,g,h;
	a=0; 
	b=0; 
	c=0; 
	d=0;
    scanf("%d\n",&n);
	for(i=1;i<=n;i+=1){
    scanf("%d",&x);
	if(x<=18)
		a+=1;
	else if(x>=19&&x<=35)
		b+=1;
	else if(x>=36&&x<=60)
		c+=1;
	else if(x>=61)
		d+=1;
	}
	e=100*1.0*a/n;
	f=100*1.0*b/n;
	g=100*1.0*c/n;
	h=100*1.0*d/n;
	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 num[100];
    int n,i,j,a,b,c,d;
	double a1,a2,a3,a4;
	scanf("%d",&n);
	for(j=0;j<n;j++)
		scanf("%d",&num[j]);
	a=0;
	for(j=0,a=0;j<n;j++)
	{
		if(num[j]<19) a++;
	}
	b=0;
	for(j=0,b=0;j<n;j++)
	{
		if(num[j]<36&&num[j]>18) b++;
	}

	c=0;
		for(j=0;j<n;j++)
				{
			if(num[j]<61&&num[j]>35) c++;
	}
	d=0;
	{   
		for(j=0;j<n;j++)
		if(num[j]>60) d++;
	}
	a1=(double)a/n*100;
	a2=(double)b/n*100;
	a3=(double)c/n*100;
	a4=(double)d/n*100;

	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",a1,a2,a3,a4);
	return 0;
}
void main()
{
	int n,i;
	int a[101];
	double counta,countb,countc,countd,one=0, two=0 ,three=0, four=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)one++;
		else if(a[i]>=19&&a[i]<=35) two++;
		else if(a[i]>=36&&a[i]<=60) three++;
		else if(a[i]>=61) four++;
	}
counta=one/n*100;
countb=two/n*100;
countc=three/n*100;
countd=four/n*100;
	printf("1-18: %.2lf",counta);
	printf("%%\n");
	printf("19-35: %.2lf",countb);
	printf("%%\n");
	printf("36-60: %.2lf",countc);
	printf("%%\n");
	printf("60??: %.2lf",countd);
	printf("%%");

}
int main()
{
    int n;
    double sz[N],fd[N]={0};
    scanf("%d",&n);
    int i;
	for(i=0;i<n;i++)
	{
		scanf("%lf",&sz[i]);
	}
	for(i=0;i<n;i++)
	{
		if(sz[i]<=18&&sz[i]>=1)
		{
			fd[0]++;
		}else if(sz[i]<=35&&sz[i]>=19)
		{
            fd[1]++;
		}else if(sz[i]<=60&&sz[i]>=36)
		{
			fd[2]++;
		}else if(sz[i]>=61)
		{
			fd[3]++;
		}
        
	}
	for(i=0;i<4;i++)
	{
		fd[i]=100*fd[i]/n;
	}
	printf("1-18: %.2lf%%\n",fd[0]);
	printf("19-35: %.2lf%%\n",fd[1]);
    printf("36-60: %.2lf%%\n",fd[2]);
	printf("60??: %.2lf%%\n",fd[3]);
	return 0;
}
int main()
{
	double n;
	cin >> n;
	int i;
	int x;
	int a=0, b=0, c=0, d=0;
	double a1, b1, c1, d1;
    for (i=0;i<n;i++)
	{	cin >> x;
	    if (x<19)
			a=a+1;
		else if (18<x && x<36)
			b=b+1;
		else if (35<x && x<61)
			c=c+1;
		else
			d=d+1;
	}
	a1 = 100*a/n;
	b1 = 100*b/n;
	c1 = 100*c/n;
	d1 = 100*d/n;
	cout << fixed << setprecision(2)<<"1-18: " << a1 << "%" << endl;
	cout << fixed << setprecision(2)<<"19-35: " << b1 << "%" << endl;
	cout << fixed << setprecision(2)<<"36-60: " << c1 << "%" << endl;
	cout << fixed << setprecision(2)<<"60??: " << d1 << "%" << endl;
	return 0;
}
void main()
{
	double n=0;
	double i=0;
	double by=0;
	double x_1=0,x_2=0,x_3=0,x_4=0;
	double l1,l2,l3,l4;
	scanf("%lf",&n);
	for(i=0;i<n;i++)
	{
		scanf("%lf",&by);
		if(by<=18)
			x_1++;
		if(by<=35&&by>=19)
			x_2++;
		if(by<=60&&by>=36)
			x_3++;
		if(by>=61)
			x_4++;
	}
	l1=100*x_1/n;
	l2=100*x_2/n;
	l3=100*x_3/n;
	l4=100*x_4/n;
	printf("1-18: %.2lf%%\n",l1);
	printf("19-35: %.2lf%%\n",l2);
	printf("36-60: %.2lf%%\n",l3);
	printf("60??: %.2lf%%\n",l4);
}
int main()
{
int n,num[4]={0},i,a[1000];
cin>>n;
for(i=0;i<n;i++)
  cin>>a[i];
for(i=0;i<n;i++)
  if(a[i]<=18)
    num[0]++;
  else if(a[i]<36)
    num[1]++;
  else if(a[i]<61)
    num[2]++;
  else num[3]++; 
cout<<"1-18: "<<fixed<<setprecision(2)<<100.0*num[0]/n<<'%'<<endl;
cout<<"19-35: "<<fixed<<setprecision(2)<<100.0*num[1]/n<<'%'<<endl;
cout<<"36-60: "<<fixed<<setprecision(2)<<100.0*num[2]/n<<'%'<<endl;
cout<<"60??: "<<fixed<<setprecision(2)<<100.0*num[3]/n<<'%'<<endl; 
 
return 0; 
}
int main()
{
	int n,x,a,b,c,d,i;
	double e,f,g,h;
	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+1;
		}
		if (x>=19&&x<=35)
		{
			b=b+1;
		}
		if (x>=36&&x<=60)
		{
			c=c+1;
		}
		if (x>=61)
		{
			d=d+1;
		}
	}
	e=(float)a/(float)n*100;
	f=(float)b/(float)n*100;
	g=(float)c/(float)n*100;
	h=(float)d/(float)n*100;
	cout<<"1-18: "<<fixed<<setprecision(2)<<e<<"%"<<endl;
	cout<<"19-35: "<<fixed<<setprecision(2)<<f<<"%"<<endl;
	cout<<"36-60: "<<fixed<<setprecision(2)<<g<<"%"<<endl;
	cout<<"60??: "<<fixed<<setprecision(2)<<h<<"%"<<endl;
	return 0;
}
void bian(int n);
int main()
{int n;
scanf("%d",&n);
bian(n);
return 0;
}
void bian(int n){
float a[4]={0};
int s[100];
int i;
for(i=0;i<n;i++){
	scanf("%d",&s[i]);
	if(s[i]<19)
		a[0]++;
	else if(s[i]<36)
		a[1]++;
	else if(s[i]<61)
		a[2]++;
	else 
		a[3]++;
}
for(i=0;i<4;i++){
	a[i]=a[i]/n;
    a[i]=a[i]*100;
}
	printf("1-18: %.2f%%\n",a[0]);
	printf("19-35: %.2f%%\n",a[1]);
    printf("36-60: %.2f%%\n",a[2]);
	printf("60??: %.2f%%\n",a[3]);
}
int main()
{
	int n,i,m[100],a=0,b=0,c=0,d=0;
	double q,w,e,r;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&m[i]);
		if(m[i]<=18) {a++;}
		else {if(m[i]<=35) b++;
    else if(m[i]<=60) c++;
    else  d++;}}
	q=(double)a/(double)n*100;
	w=(double)b/(double)n*100;
    e=(double)c/(double)n*100;
     r=(double)d/(double)n*100;
	 printf("1-18: %.2lf%%\n",q);
printf("19-35: %.2lf%%\n",w);
printf("36-60: %.2lf%%\n",e);
printf("60??: %.2lf%%",r);
return 0;
}
int main()
{
	int n,age[101],a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(int i=0;i<n;i++)
		scanf("%d",&age[i]);
	for(int j=0;j<n;j++)
	{
		if(age[j]<=18)
			a++;
		if(age[j]<=35&&age[j]>18)
			b++;
		if(age[j]<=60&&age[j]>35)
			c++;
		if(age[j]>60)
			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;
}
void main()
{
	int n,a=0,b=0,c=0,d=0,i,m;
	double a1,b1,c1,d1;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&m);
		if(m<=18)
		a++;
		else if(m>18&&m<36)
		b++;
		else if(m>35&&m<61)
		c++;
		else
		d++;
	}
	a1=(double)a/n*100;	b1=(double)b/n*100;
	c1=(double)c/n*100;	d1=(double)d/n*100;
	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 argc, char* argv[])
{
	int a[105];
	int n,i;
	int e=0;
	int b=0;
	int c=0;
	int d=0;
	double e1,b1,c1,d1;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
    for(i=0;i<n;i++)
	{if(a[i]<=18)  e++;
	else if(a[i]>18 && a[i]<=35)  b++;
	else if(a[i]>35 && a[i]<=60)  c++;
	else d++;
	}
	e1=(double)e/n*100;
	b1=(double)b/n*100;
    c1=(double)c/n*100;
    d1=(double)d/n*100;
	printf("1-18: %.2lf%%\n",e1);
    printf("19-35: %.2lf%%\n",b1);
	printf("36-60: %.2lf%%\n",c1);
    printf("60??: %.2lf%%\n",d1);
	return 0;
}
int main(){
	int n,i;
	float zu1=0,zu2=0,zu3=0,zu4=0,a[10000];
	scanf("%d",&n);
	for(i=0;i<n;i++){
	scanf("%f",&a[i]);
	}

for(i=0;i<n;i++){
	if(a[i]>0&&a[i]<=18){
	zu1+=1;
	} 
	if(a[i]>18&&a[i]<=35){
	zu2+=1;
	} 
	if(a[i]>35&&a[i]<=60){
	zu3+=1;
	} 
	if(a[i]>60){
	zu4+=1;
	} 
	}
printf("1-18: %.2f%%\n",zu1/n*100);
printf("19-35: %.2f%%\n",zu2/n*100);
printf("36-60: %.2f%%\n",zu3/n*100);
printf("60??: %.2f%%\n",zu4/n*100);
return 0;
}
int main()
{
	int sz[100],i;
	double a,b,c,d;
	double e=0,f=0,g=0,h=0,n;
	scanf("%lf",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&sz[i]);
		if(sz[i]<=18)
		{
			e++;
		}
		else if(sz[i]<=35)
		{
			f++;
		}
		else if(sz[i]<=60)
		{
			g++;
		}
		else
		{
			h++;
		}
	}
	a=100*e/n;
	b=100*f/n;
	c=100*g/n;
	d=100*h/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[100],b,c,d,e,j;
	double f,g,h,i;
	scanf("%d",&n);
	for(j=0,b=0,c=0,d=0,e=0;j<n;j++)
	{
		scanf("%d",&a[j]);
		if(a[j]<19)b++;
		else if(a[j]<36)c++;
		else if(a[j]<61)d++;
		else e++;
	}
	f=(double)b/(double)n*100;
	g=(double)c/(double)n*100;
	h=(double)d/(double)n*100;
	i=(double)e/(double)n*100;
	printf("1-18: %.2f%%\n",f);
	printf("19-35: %.2f%%\n",g);
	printf("36-60: %.2f%%\n",h);
	printf("60??: %.2f%%\n",i);
	return 0;
}
int main()
{	double a,b,c,d;
    int i,n,u,v,y,z;
    int nl[1000];
	u=0;
	v=0;
    y=0;
	z=0;
	scanf("%d\n",&n);
    for(i=1;i<=n;i++){
    scanf("%d",&(nl[i]));
	    if(0<(nl[i])&&(nl[i])<19){
		    u+=1;
		}else if((nl[i])>18&&(nl[i])<36){
		    v+=1;
		}else if((nl[i])>35&&(nl[i])<61){
		    y+=1;
		}else if((nl[i])>60){
		    z+=1;
		}
    }
	a=1.0*u/n*100.0;
	b=1.0*v/n*100.0;
	c=1.0*y/n*100.0;
	d=1.0*z/n*100.0;

	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()
{
	double a[100],b=0,c=0,d=0,e=0,f=0;
	int n,i;
	double r,s,t,u;
	scanf("%d", &n);
	for(i=0;i<n;i++)
		scanf("%lf", &a[i]);
	for(i=0;i<n;i++)
	{
		if(a[i]>60)
			b=b+1;
		else
		{
			if(a[i]>35)
				c=c+1;
			else
				if(a[i]>18)
					d=d+1;
				else
					e=e+1;
		}
	}
	f=b+c+d+e;
	u=100*b/f;
	t=100*c/f;
	s=100*d/f;
	r=100*e/f;
	printf("1-18: %.2lf%%\n", r);
	printf("19-35: %.2lf%%\n", s);
	printf("36-60: %.2lf%%\n", t);
	printf("60??: %.2lf%%\n", u);
	return 0;
}
int main()
{
	int i, n, input, r[4];
	scanf("%d", &n);
	for(i=0; i<4; i++) r[i]=0;
	for(i=0; i<n; i++)
	{
		scanf("%d", &input);
		if(input<19) r[0]++;
		if(input>18&&input<36) r[1]++;
		if(input>35&&input<61) r[2]++;
		if(input>60) r[3]++;
	}
	printf("1-18: %.2lf%%\n", r[0]*100.0/n);
	printf("19-35: %.2lf%%\n", r[1]*100.0/n);
	printf("36-60: %.2lf%%\n", r[2]*100.0/n);
	printf("60??: %.2lf%%\n", r[3]*100.0/n);
	return 0;
}
int main(int argc, char* argv[]){
	int n,age[100],i,team[4]={0};
	double per[4];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age[i]);
	}
	for(i=0;i<n;i++){
		if (age[i]<19) team[0]++;
		else if(age[i]>18&&age[i]<36) team[1]++;
		else if(age[i]>35&&age[i]<61) team[2]++;
		else if(age[i]>59) team[3]++;
	}
	per[0]=(double)team[0]/n*100;
	per[1]=(double)team[1]/n*100;
	per[2]=(double)team[2]/n*100;
	per[3]=(double)team[3]/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",per[0],per[1],per[2],per[3]);

	

	return 0;
}
int main()
{
	int a[100],n,i,m=0,b=0,c=0,d=0;
	double q1,q2,q3,q4;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++)
	{
		if(a[i]<=18&&a[i]>0)
		{
	     	m+=1;
		}
		if(a[i]<=35&&a[i]>=19)
		{
			b+=1;
		}
		if(a[i]<=60&&a[i]>=36)
		{
			c+=1;
		}
		if(a[i]>60)
		{
			d+=1;
		}
	}
	q1=(double)100*m/n;
    q2=(double)100*b/n;
	q3=(double)100*c/n;
	q4=(double)100*d/n;
	printf("1-18: %.2lf%%\n",q1);
	printf("19-35: %.2lf%%\n",q2);
	printf("36-60: %.2lf%%\n",q3);
	printf("60??: %.2lf%%\n",q4);
	return 0;
}
int main(){
	int n,i;
	int age[100];
	double a=0.0,b=0.0,c=0.0,d=0.0;
	double e,A,B,C,D;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&age[i]);
	}
	for(i=0;i<n;i++)
	{
		if(age[i]>=1&&age[i]<=18)
			a++;
		else if(age[i]>=19&&age[i]<=35)
			b++;
		if(age[i]>=36&&age[i]<=60)
			c++;
		if(age[i]>=61)
			d++;
	}
	e=a+b+c+d;
	A=a/e*100;
	B=b/e*100;
	C=c/e*100;
	D=d/e*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,y;//????
	cin>>n;//?????????
	double a,b,c,d;//????
	a=0,b=0,c=0,d=0;//???a,b,c,d??
	for(i=1;i<=n;i++)
	{
		cin>>y;//??????
		if(y<=18)a=a+1;//??y<=18,a=a+1
		else if(y>=19&&y<=35)b=b+1;//??19<=y<=35,b=b+1
		else if(y>=36&&y<=60)c=c+1;//??36<=y<=60,c=c+1
		else d=d+1;//???d=d+1
	}
	cout<<"1-18: "<<fixed<<setprecision(2)<<100*a/n<<"%"<<endl;//??1-18?????
	cout<<"19-35: "<<fixed<<setprecision(2)<<100*b/n<<"%"<<endl;//??19-35?????
	cout<<"36-60: "<<fixed<<setprecision(2)<<100*c/n<<"%"<<endl;//??36-60?????
	cout<<"60??: "<<fixed<<setprecision(2)<<100*d/n<<"%"<<endl;//??60???????
	return 0;
}
void main()
{
	int a[100],n,j,i,c=0;
	float b[4]={0,0,0,0};
	scanf("%d",&n);
	for(j=0;j<n;j++)
		scanf("%d",&a[j]);
	while(c<n)
	{
		if(0<a[c]&&a[c]<19)
			b[0]=b[0]+1;
		else if(18<a[c]&&a[c]<36)
			b[1]=b[1]+1;
		else if(35<a[c]&&a[c]<61)
			b[2]=b[2]+1;
		else
			b[3]=b[3]+1;
		c++;
	}
	for(i=0;i<4;i++)
		b[i]=b[i]/n*100;
	printf("1-18: %.2f%\n19-35: %.2f%\n36-60: %.2f%\n60??: %.2f%\n",b[0],b[1],b[2],b[3]);
}
int main(){
    int n,x=0,y=0,z=0,w=0;
    double b,c,d,e;
    scanf("%d",&n);
    int a[n];
    for(int 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{
            w++;
        }
    }
    b=100.0*x/n;
    c=100.0*y/n;
    d=100.0*z/n;
    e=100.0*w/n;
    printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\nOver60: %.2lf%%",b,c,d,e);
    return 0;
}
int main()
{
	int i,n,x;
	double q,w,e,r,a,b,c,d;
	scanf("%d",&n);
	a=0;
	b=0;
	c=0;
	d=0;
	for(i=0;i<n;i++)
	{
		scanf("%d",&x);
		if(x<=18)
			a=a+1;
		else if((x>18)&&(x<=35))
			b=b+1;
		else if((x>=36)&&(x<=60))
			c=c+1;
		else if(x>60)
			d=d+1;
	}
	q=a/n*100;
	w=b/n*100;
	e=c/n*100;
	r=d/n*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 sm[100];
    int a=0,b=0,c=0,d=0,i,n;
    scanf("%d",&n);
    for(i=0;i<n;i++)
    {
    scanf("%d",&sm[i]);
    if(sm[i]<=18){a++;}
    else if(sm[i]<=35){b++;}
    else if(sm[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("60??: %.2lf%%\n",d*100.0/n);    
    return 0;
}
int main () 
{
	int i,n,nl;
	int nld[4]={0,0,0,0};
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&nl);
		if(nl<=18)
			nld[0]++;
		   
		if(nl>18&&nl<36)
			nld[1]++;
		    
		if(nl>35&&nl<61)
			nld[2]++;
		   
		if(nl>60)
			nld[3]++;
		   
	}
    printf("1-18: %.2lf%%\n",(100.0*nld[0])/n);
	 printf("19-35: %.2lf%%\n",(100.0*nld[1])/n);
	  printf("36-60: %.2lf%%\n",(100.0*nld[2])/n);
	   printf("60??: %.2lf%%\n",(100.0*nld[3])/n);
	return 0;
}
int main(){
	int n,a=0,b=0,c=0,d=0;
	int i;
    int sz[10000];
	scanf("%d",&n);
    for(i=0;i<=(n-1);i++){
		scanf("%d", &(sz[i]));
		if(sz[i]>0&&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++;
		}
	}
	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 age[100];
   int i,n;
   scanf("%d",&n);
   
   for(i=0;i<n;i++){
        scanf("%d",&age[i]);
   }
   double s1=0.0,s2=0.0,s3=0.0,s4=0.0,m=0.0;
   for(i=0;i<n;i++){
	   if(1<=age[i]&&age[i]<=18){
             s1 +=1;
	   }else if(19<=age[i]&&age[i]<=35){
		   s2 += 1;
	   }else if(36<=age[i]&&age[i]<=60){
		   s3 += 1;
	   }else if(age[i]>60){
		   s4 += 1;
	   }
   }
   m=s1+s2+s3+s4;
   
   printf("1-18: %.2lf%%\n",100*s1/m);
   printf("19-35: %.2lf%%\n",100*s2/m);
   printf("36-60: %.2lf%%\n",100*s3/m);
   printf("Over60: %.2lf%%\n",100*s4/m);
  
   return 0;
}
int main()
{
	int n,i;
	int a[100]={0};
	int s=0,q=0,z=0,l=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<=18)
		{
			s+=1;
		}
		else if(a[i]>18&&a[i]<=35)	
		{
			q+=1;
		}
		else if(a[i]>35&&a[i]<=60)	
		{
			z+=1;
		}
		else if(a[i]>60)	
		{
			l+=1;
		}
	}
	printf("1-18: %.2lf%\n",100.0*s/n);
	printf("19-35: %.2lf%\n",100.0*q/n);
	printf("36-60: %.2lf%\n",100.0*z/n);
	printf("60??: %.2lf%\n",100.0*l/n);
	return 0;
}