semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(){
	int n;
	int num;
	int i=1,a=0,b=0,c=0,d=0;
	scanf("%d",&n);
    double e,f,g,h;
	while(i<=n){
		scanf("%d",&num);
		if(num<19){
			a++;
		}else if(num<36){
			b++;
		}else if(num<61){
			c++;
		}else{
			d++;
		}
		i++;
		continue;
	}
	e=a;
	f=b;
	g=c;
	h=d;
	e=e/n*100;
	f=f/n*100;
	g=g/n*100;
	h=h/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;
}
int main(){
	
	double	n,age,a=0,b=0,c=0,d=0;
    scanf("%lf",&n);
	for(double i=0;i<n;i++)
	{
		scanf("%lf",&age);
			if(age<19)
				a++;
			else if((age>18)&&(age<36))
				b++;
            else if((age>35)&&(age<61))
				c++;
			else if(age>59)
				d++;
	}
     printf("1-18: %.2lf%%\n",100*a/n);
printf("19-35: %.2lf%%\n",100*b/n);
printf("36-60: %.2lf%%\n",100*c/n);
printf("60??: %.2lf%%\n",100*d/n);
//scanf("%lf",&age);
	return 0;
}
int main()
{
	int n,k,a=0,b=0,c=0,d=0,i;
	double p,q,m,g;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&k);
		if(k<19)
			a=a+1;
		else if(k>18&&k<36)
			b=b+1;
		else if(k>35&&k<61)
			c=c+1;
		else if(k>60)
			d=d+1;
	}
	p=100*(double)a/n;
	q=100*(double)b/n;
	m=100*(double)c/n;
	g=100*(double)d/n;
	printf("1-18: %.2lf%%\n",p);
	printf("19-35: %.2lf%%\n",q);
	printf("36-60: %.2lf%%\n",m);
	printf("60??: %.2lf%%\n",g);
    return 0;
}
int main()
{   double l,m,q,p;
double g=0,s=0,b=0,c=0;
	int n,i;
	int a[100];
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++){
	if(a[i]>=1&&a[i]<=18)s=s+1;
	if(a[i]>=19&&a[i]<=35)g=g+1;
	if(a[i]>=36&&a[i]<=60)b=b+1;
	if(a[i]>=61)c=c+1;
	}
    m=(g*100)/n;	l=(s*100)/n;
	q=(b*100)/n;
	p=(c*100)/n;
		printf("1-18: %.2lf%%\n",l);
			printf("19-35: %.2lf%%\n",m);
			printf("36-60: %.2lf%%\n",q);
printf("60??: %.2lf%%\n",p);

return 0;

}
int main(){ 
	int i,n;
	int sz[100];
	double x,y,z,p;
	int b1=0;
	int b2=0;
	int b3=0;
	int b4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&(sz[i]));
	}
    i=0;
	while (i<n){
		if((sz[i])<=18){
			b1++;
		}else if((sz[i])<=35){
				b2++;
		}else if((sz[i])<=60){
					b3++;
		}else{
               b4++;
		}
		i++;
	}
     x=1.00*b1/n*100;
	 y=1.0000*b2/n*100;
	 z=1.0000*b3/n*100;
	 p=1.0000*b4/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;
}
int main()
{
	double n, i, a, x = 0, y = 0, z = 0, k = 0;
	cin >> n;
	for(i = 0;i < n;i++)
	{
		cin >> a;
		if(a <= 18)
			x++;
		else if(a <= 35)
			y++;
		else if(a <= 60)
			z++;
		else 
			k++;
	}
	cout <<fixed << setprecision(2) <<"1-18: "<< x / n * 100 << '%' << endl <<"19-35: "<< y / n * 100 << '%' << endl <<"36-60: "<< z / n * 100 << '%' << endl <<"60??: "<< k / n * 100 << '%' << endl;
	return 0;
}
void main()
{
	int n;
	int a[101];
	int i;
	int aa[4]={0};
	double m,b[4];

	scanf("%d",&n);

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

	for(i=0;i<n;i++)
		if(a[i]<=18)
			aa[0]++;
		else if(a[i]<=35)
			aa[1]++;
		else if(a[i]<=60)
			aa[2]++;
		else
			aa[3]++;
	m=n;
	for(i=0;i<4;i++)
	{
		b[i]=100*aa[i]/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%%\n",b[3]);
}
int main()
{
	int n,s1=0,s2=0,s3=0,s4=0,i,a;
	double m,l,p,q;
	scanf("%d",&n);
		for(i=0;i<n;i++)
		{
			scanf("%d",&a);
			if(a>=1&&a<=18)
			{
				s1=s1+1;
			}
			else if(a>=19&&a<=35)
			{
				s2=s2+1;
			}
			else if(a>=36&&a<=60)
			{
				s3=s3+1;
			}
			else s4=s4+1;
		}
		m=(double)s1/n*100;
		l=(double)s2/n*100;
		p=(double)s3/n*100;
		q=(double)s4/n*100;
		printf("1-18: ");
		printf("%.2lf%\n",m);
		printf("19-35: ");
		printf("%.2lf%\n",l);
		printf("36-60: ");
		printf("%.2lf%\n",p);
		printf("60??: ");
		printf("%.2lf%\n",q);
	
			return 0;
}
int main(){
    int sz[100];
    int n,i,a,b,c,d;
    a=0;
    b=0;
    c=0;
    d=0;
    double A,B,C,D;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d",&sz[i]);
    }
    for(i=0;i<n;i++){
        if(sz[i]<=18&&sz[i]>=1){
            a++;
        }
    }
    for(i=0;i<n;i++){
        if(sz[i]>=19&&sz[i]<=35){
            b++;
        }
    }
    for(i=0;i<n;i++){
        if(sz[i]>=36&&sz[i]<=60){
            c++;
        }
    }
    for(i=0;i<n;i++){
        if(sz[i]>60){
            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,i;
  double a,b,c,d;
  a=0;
  b=0;
  c=0;
  d=0;
  scanf("%d",&n);
  int haha[1000];
  for (i=0;i<n;i++)
  {
	  scanf("%d",&haha[i]);
  }
  for (i=0;i<n;i++)
  {
      if(haha[i]>0&&haha[i]<19)
		  a=a+1;
	  else if (haha[i]>18&&haha[i]<36)
		  b=b+1;
	  else if (haha[i]>35&&haha[i]<61)
		  c=c+1;
      else if (haha[i]>60)
          d=d+1;
  }
  
  a=a/n;
  b=b/n;
  c=c/n;
  d=d/n;
  printf("1-18: %.2lf%%\n",a*100);
  printf("19-35: %.2lf%%\n",b*100);
  printf("36-60: %.2lf%%\n",c*100);
  printf("60??: %.2lf%%",d*100);

	return 0;
}
int main()
{ 
	int a[100],n,i,b,c,d,e;
    double o,p,q,r;
	scanf("%d",&n);
	b=0;
	c=0;
	d=0;
	e=0;
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	
 	for(i=0;i<n;i++)
	{
		if(a[i]<19)
		{
			b+=1;
			 
		}
		else
		{
			if(a[i]<36)
			{
				c+=1;
				 
			}
			else
			{
                if(a[i]<61)
				{
					d+=1;
					 
				}
		        else 		
				{ 
					e+=1;
				 
				}
			}
		}
			
		
	}
	o=(double)100*b/n;
	p=(double)100*c/n;
	q=(double)100*d/n;
	r=(double)100*e/n;
	printf("1-18: %.2lf%%\n",o);
    printf("19-35: %.2lf%%\n",p);
    printf("36-60: %.2lf%%\n",q);
    printf("60??: %.2lf%%",r);
	return 0;
}
int main(){
    int n,i;
    int a[100],b[4];
    double f,c,d,e;
    scanf("%d",&n);
    for(i=0;i<n;i++){
                     scanf("%d",&a[i]);
                     }
                     b[0]=0;
                     b[1]=0;
                     b[2]=0;
                     b[3]=0;
    for(i=0;i<n;i++){
                     if(a[i]<19){
                                 b[0]+=1;
                                 }
                     if(a[i]>18&&a[i]<36){
                                          b[1]+=1;
                                          }
                     if(a[i]>35&&a[i]<61){
                                          b[2]+=1;
                                          }
                     if(a[i]>60){
                                 b[3]+=1;
                                 }
                     }
    f=b[0]*1.0/n*100;
    c=b[1]*1.0/n*100;
    d=b[2]*1.0/n*100;
    e=b[3]*1.0/n*100;
    printf("1-18: %.2lf%%\n",f);
    printf("19-35: %.2lf%%\n",c);
    printf("36-60: %.2lf%%\n",d);
    printf("60??: %.2lf%%",e);
    return 0;
}
int main()
{
 int n;
 int sz[100];
 int i;
 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]>18&&sz[i]<=35){
       b+=1;
      }else if(sz[i]>35&&sz[i]<=60){
          c+=1;
      }else {
           d+=1;
      }

 }

 printf("1-18: %.2lf%%\n",(double)a*100/n);
 printf("19-35: %.2lf%%\n",(double)b*100/n);
 printf("36-60: %.2lf%%\n",(double)c*100/n);
 printf("60??: %.2lf%%",(double)d*100/n);
 return 0;
}
int main()
{
	int n,i;
	double a,b,c,d;
	a=0;
	b=0;
	c=0;
	d=0;
	int age;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&age);
		if(age<=18)
			a++;
		else if(age<=35)
			b++;
		else if(age<=60)
			c++;
		else 
			d++;
	}
	a=(double)a/n*100;
	b=(double)b/n*100;
	c=(double)c/n*100;
	d=(double)d/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",a,b,c,d);
	return 0;
}
int main(){
int n;
int i;
double x=0,y=0,z=0,w=0;
int a[100];
scanf("%d",&n);
for(i=0;i<100;i++){
scanf("%d",&(a[i]));
 }
for(i=0;i<n;i++){
if(a[i]<=18){
x++;}
else if(a[i]<36){
y++;}
else if(a[i]<61){
z++;}
else if(a[i]>=60){
w++;}
  }
printf("1-18: %.2lf%%\n",100.0*x/n);
printf("19-35: %.2lf%%\n",100.0*y/n);
printf("36-60: %.2lf%%\n",100.0*z/n);
printf("60??: %.2lf%%\n",100.0*w/n);
return 0;
}
int main()
{
	int n,i,a,m=0,q=0,x=0,y=0;
	double f,g,h,j;
	scanf("%d",&n);
	for (i=0;i<n;i++){
		scanf("%d",&a);
		if (a<=18)
			m++;
		else if(a<=35)
			q++;
		else if(a<=60)
			x++;
		else if(a>=61)
			y++;
	
	}
	
	f=m/(double)n*100;
	g=q/(double)n*100;
	h=x/(double)n*100;
	j=y/(double)n*100;
	printf("1-18: %.2lf%\n",f);
	printf("19-35: %.2lf%\n",g);
	printf("36-60: %.2lf%\n",h);
	printf("60??: %.2lf%\n",j);
	return 0;
}
int main(){
	int n,i,r=0,s=0,t=0,u=0,y;
	double a,b,c,d;
	scanf("%d",&n);
	for(i=1;i<=n;i++){
		scanf("%d",&y);
		if(y<=18){
			r=r+1;
		}else if((y>=19)&&(y<=35)){
			s++;
		}else if((y>=36)&&(y<=60)){
			t++;
		}else if(y>=61){
			u++;
		}
	}
		a=100.0*r/n;
		b=100.0*s/n;
		c=100.0*t/n;
		d=100.0*u/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 argc, char* argv[])
{
	int n,age[100],i,s1=0,s2=0,s3=0,s4=0,sum;
	double a1,a2,a3,a4;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age[i]);
		if(age[i]>=1&&age[i]<=18){
			s1++;

		}
		if(age[i]>=19&&age[i]<=35){
			s2++;
		}
        if(age[i]>=36&&age[i]<=60){
			s3++;
		}
        if(age[i]>60){
			s4++;
		}


	}
	sum=s1+s2+s3+s4;
	a1=(double)s1/sum*100;
    a2 =(double)s2/sum*100;
	a3=(double)s3/sum*100;
	a4=(double)s4/sum*100;
	printf("1-18: %.2lf",a1);
	printf("%%\n");
	printf("19-35: %.2lf",a2);
printf("%%\n");
	printf("36-60: %.2lf",a3);
printf("%%\n");
	printf("60??: %.2lf",a4);
printf("%%\n");
	return 0;
}
int main(){
	int n;
	int A=0,B=0,C=0,D=0;
	int i;
//	int sum=0;
	
	int ew[100];
	double a=0,b=0,c=0,d=0;
	scanf("%d",&n);

	for(i=0;i<=n-1;i++){
		scanf("%d",&ew[i]);
	}
//	for(i=0;i<=n-1;i++){
//		sum+=ew[i];
//	}
	for(i=0;i<=n-1;i++){
		if(ew[i]<=18&&ew[i]>=1){
			A++;
		}
		if(ew[i]<=35&&ew[i]>=19){
			B++;
		}
		if(ew[i]<=60&&ew[i]>=36){
			C++;
		}if(ew[i]>=61){
			D++;
		}
	}
	a=(A*1.0/n)*100;
	b=(B*1.0/n)*100;
	c=(C*1.0/n)*100;
	d=(D*1.0/n)*100;

	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",a,b,c,d);
	return 0;
}
int main(){
  int n,t,i;
  double m,a,b,c,d;
  a=0;
  b=0;
  c=0;
  d=0;
  scanf("%d",&n);
  for(i=1;i<=n;i++){
    scanf("%d",&t);
    if(t>=1&&t<=18){
    a++;
    }else if(t>=19&&t<=35){
    b++;
    }else if(t>=36&&t<=60){
    c++;
    }else if(t>=61){
    d++;
    }
  }
  m=n;
  a=100*a/m;
  b=100*b/m;
  c=100*c/m;
  d=100*d/m;
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;
}
/*************************
 ***??:??? 1200012776
 ***????:?????
 ***??:2012?9?27?
 *************************/
int main()
{
	int i, n, age_1_18 = 0, age_19_35 = 0, age_36_60 = 0, age_60 = 0;
	//???????n,1-18???,19-35???,36-60??,60????,???n?????
	
	cin >> n;	//??n
	int age[100];
	double age_1_18_percent, age_19_35_percent, age_36_60_percent, age_60_percent;
	//????1-18???,19-35???,36-60??,60??????

	for (i = 1; i <= n; i++)	//??????
	{
		cin >> age[i];	//???i?????
		if (age[i] >= 1 && age[i] <= 18)	//??????????1-18
		{
			age_1_18 = age_1_18 + 1 ;	//????age_1_18??
		}
		if (age[i] >= 19 && age[i] <= 35)	//??????????19-35
		{
			age_19_35 = age_19_35 + 1 ;	//????age_19_35??
		}
		if (age[i] >= 36 && age[i] <= 60)	//??????????36-60
		{
			age_36_60 = age_36_60 + 1 ;	//???age_39_60??
		}
		if (age[i] > 60)	//??????????60
		{
			age_60 = age_60 + 1;	//???age_60??
		}
	};
	age_1_18_percent = age_1_18 * 1.0 / n;	//?1-18????????1-18????????????,???
	age_19_35_percent = age_19_35 * 1.0 / n;
	age_36_60_percent = age_36_60 * 1.0 / n;
	age_60_percent = age_60 * 1.0 / n;
	cout << fixed << setprecision(2) << "1-18: " << age_1_18_percent * 100 << "%" <<endl;	//???????????????
	cout << "19-35: " << age_19_35_percent * 100 << "%" <<endl;
	cout << "36-60: " << age_36_60_percent * 100 << "%" <<endl;
	cout << "60??: " << age_60_percent * 100 << "%" <<endl;
	return 0;
}
int main()
{
	int n,i,a[100];
	int b=0,c=0,d=0,e=0;
	double B,C,D,E;
	scanf("%d\n",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	    
	for(i=0;i<n;i++){
		if(a[i]>=0&&a[i]<=18)
			b++;
		if(a[i]>18&&a[i]<=35)
			c++;
		if(a[i]>35&&a[i]<=60)
			d++;
		if(a[i]>60)
			e++;
	}
         B=(double)b/n;
		 C=(double)c/n;
		 D=(double)d/n;
		 E=(double)e/n;
		 printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",B*100,C*100,D*100,E*100);

		return 0;
}
int main()
{
	int n,an[100],i,j;
	double a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&an[i]);
		if(an[i]>=1&&an[i]<=18) a++;
		if(an[i]>=19&&an[i]<=35) b++;
		if(an[i]>=36&&an[i]<=60) c++;
		if(an[i]>60) d++;
	}
	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;
}
int main(int argc, char* argv[])
{
	int n;
	scanf("%d",&n);
	int a[101];
	double q=0,w=0,e=0,r=0;
	for(int i=1;i<=n;i++){
		scanf("%d",&a[i]);
		if(a[i]<=18){
			q++;}
		if(a[i]<=35&&a[i]>=19){
			w++;}
		if(a[i]<=60&&a[i]>=36){
			e++;}
		if(a[i]>=61){
			r++;}
	}
	printf("1-18: %.2lf%%\n",q/n*100);
	printf("19-35: %.2lf%%\n",w/n*100);
	printf("36-60: %.2lf%%\n",e/n*100);
	printf("60??: %.2lf%%\n",r/n*100);


	return 0;
}
int main(){
	int i,n,a=0,b=0,c=0,d=0;
	int year[sum];
	double a1,b1,c1,d1;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&year[i]);
	}
	for(i=0;i<n;i++){
		if(year[i]<19){
			a++;
		}else if(year[i]<36){
			b++;
		}else if(year[i]<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);
		return 0;
}
//***************************
//* @author ??          **
//* @date 2012-09-26       ** 
//* @description ?????   **
//***************************
int main()                //?????
{
	int n, a = 0, b = 0, c = 0, d = 0, i ;   //????
    //cout<<"?????"<<endl;   //??
	cin >> n;                    //??
	int m[100];              //????
	//cout<<"???????"<<endl;   //??
	for(i = 1; i <= n; i++)            //????
	{
		cin >> m[i];             //??
		if(m[i] <= 18)            //????
		{a++;}
		else if(m[i] <= 35)
		{b++;}
		else if(m[i] <= 60)
		{c++;}
		else 
		{d++;}
	}
	//cout<<"????????"<<endl;
  cout << fixed << setprecision(2) << "1-18: " << (double)a/n*100;//??
  printf("%%");
  cout << endl;
  cout << "19-35: " << (double)b/n * 100;    //??
  printf("%%");
  cout << endl;
  cout << "36-60: " << (double)c/n * 100;    //??
  printf("%%");
  cout << endl;
  cout << "60??: " << (double)d/n * 100;    //??
  printf("%%");
  cout << endl;
  return 0;        //?????
}
int main ()
{
    int n;
    cin>>n;
    float a=0, b=0, c=0, d=0;
    int x[n];
    for(int i=0;i<n;i++)
    {
            cin>>x[i];
    }
    for(int j=0;j<n;j++)
    {
            if(x[j]>=1&&x[j]<=18) a++;
            else if(x[j]>=19&&x[j]<=35) b++;
            else if(x[j]>=36&&x[j]<=60) c++;
            else if(x[j]>60) d++;
    }
    float a1= 100.0*a/n;
    float b1= 100.0*b/n;
    float c1= 100.0*c/n;
    float d1= 100.0*d/n;
    printf("1-18: %.2f%%\n", a1);
    printf("19-35: %.2f%%\n", b1);
    printf("36-60: %.2f%%\n", c1);
    printf("60??: %.2f%%\n", d1);
    return 0;
}
main()
{
	double b=0;double c=0;double d=0;double e=0;
	int n;int i;
	cin>>n;
    int a[100];
	for(i=0;i<n;i++)
		cin>>a[i];
    for (i=0;i<n;i++)
	{
		if((a[i]==1||a[i]>1)&&(a[i]==18||a[i]<18))b++;
        if((a[i]==19||a[i]>19)&&(a[i]==35||a[i]<35))c++;
		if((a[i]==36||a[i]>36)&&(a[i]==60||a[i]<60))d++;
        if(a[i]==61||a[i]>61)e++;
	}
    double m=b/n*100;double u=c/n*100;double o=d/n*100; double p=e/n*100;
	cout<<"1-18: "; printf("%.2lf",m);cout<<"%\n";
	cout<<"19-35: "; printf("%.2lf",u);cout<<"%\n";
	cout<<"36-60: "; printf("%.2lf",o);cout<<"%\n";
	cout<<"60??: "; printf("%.2lf",p);cout<<"%\n";
}
int main()
{
	int n,i;
	int a;
	double A=0;
	double B=0;
	double C=0;
	double D=0;
	double e,f,g,h;
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%d",&a);
		if(a>=1&&a<=18)
			A+=1;
		if(a>=19&&a<=35)
			B+=1;
		if (a>=36&&a<=60)
			C+=1;
		if(a>=61)
			D+=1;
	}
	//printf("%lf %lf %lf %lf",A,B,C,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%%",h);
return 0;
}
int main()
{
   int n,i;
   double m1,m2,m3,m4,s1=0,s2=0,s3=0,s4=0,a[200];
   scanf("%d",&n);
   for(i=0;i<n;i++){
	   scanf("%lf",&a[i]);
	   if(a[i]<=18){
          s1+=1;
	   }
	   if(a[i]>=19&&a[i]<=35){
          s2+=1;
	   }
	   if(a[i]>=36&&a[i]<=60){
		  s3+=1;
	   }
	   if(a[i]>=61){
		   s4+=1;
	   }
   }
   m1=s1/n*100;
   m2=s2/n*100;
   m3=s3/n*100;
   m4=s4/n*100;
   printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",m1,m2,m3,m4);
   return 0;
}
int main()
{
	int n;
	int sz[100];

	int i;
	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]<=18){
			a++;
		}
		else if(sz[i]<=35){
			b++;
		}
		else if(sz[i]<=60){
			c++;
		}
		else{
			d++;
		}
	}

		printf("1-18: %.2lf%%\n",1.0*a/n*100);
		printf("19-35: %.2lf%%\n",1.0*b/n*100);
		printf("36-60: %.2lf%%\n",1.0*c/n*100);
		printf("60??: %.2lf%%\n",1.0*d/n*100);
	
	return 0;
}
int main(){
	int n,i,nianling,a=0,b=0,c=0,d=0,he;
	double a1,b1,c1,d1;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&nianling);
		if(nianling<=18){
			a++;}
		if((nianling<=35)&&(nianling>=19)){
			b++;}
		if((nianling<=60)&&(nianling>=36)){
			c++;}
		if(nianling>60){
			d++;}
	}
	he=a+b+c+d;
	a1=1.0*a/he*100;
	b1=1.0*b/he*100;
	c1=1.0*c/he*100;
	d1=1.0*d/he*100;
	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,a[100],b1=0,b2=0,b3=0,b4=0,i;
	double c1,c2,c3,c4;
	c1=0.0;
	c2=0.0;
	c3=0.0;
	c4=0.0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)
		{
			b1++;
		}
		if(a[i]>18&&a[i]<=35)
		{
			b2++;
		}
		if(a[i]>35&&a[i]<=60)
		{
			b3++;
		}
		if(a[i]>60){
			b4++;
		}
	}
	c1=(double)b1*100/n;
	c2=(double)b2*100/n;
	c3=(double)b3*100/n;
	c4=(double)b4*100/n;
	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 a,b,c,d;
	int i,n,t;
	a=b=c=d=0;
	scanf("%d",&n);
	for (i=1; i<=n; 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++;
	}
	double e,f,g,h;
	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;
}
void main()
{
	float n,m,i,a=0,b=0,c=0,d=0,e,f,g,h;
    scanf("%f",&n); 
	for(i=0;i<n;i++)
	{scanf("%f",&m);
	 if((m>0)&&(m<19)) a++;
	 if((m>18)&&(m<36)) b++;
	 if((m>35)&&(m<61)) c++;
	 if(m>60) d++;
	}
	e=(float)(100*a/n);
    f=(float)(100*b/n);
    g=(float)(100*c/n);
    h=(float)(100*d/n);
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",e,f,g,h);
}
int main()    //???
{
	int i,a[100];
	double n,x=0,y=0,z=0,w=0;    //????
	cin>>n;     //??
	for(i=0;i<n;i++)
	{
		cin>>a[i];    //?????? 
		if (a[i]<=18&&a[i]>=1)x=x+1; 
		if (a[i]<=35&&a[i]>=19)y=y+1;
		if (a[i]<=60&&a[i]>=36)z=z+1;
		if (a[i]>60)w=w+1;      //??????? 
	}
	x=100*(x/n);
	y=100*(y/n);
	z=100*(z/n);
	w=100*(w/n);     //????? 
	cout<<"1-18: ";
	printf("%.2lf",x);
	cout<<"%"<<endl;
	cout<<"19-35: ";
	printf("%.2lf",y);
	cout<<"%"<<endl;
	cout<<"36-60: ";
	printf("%.2lf",z);
	cout<<"%"<<endl;
	cout<<"60??: ";
	printf("%.2lf",w);
	cout<<"%"<<endl;       //???????? 
	return 0;
}
int main(int argc, char* argv[])
{
	int n,age[100],i,a=0,b=0,c=0,d=0;
	double agea,ageb,agec,aged;
	scanf("%d",&n);
	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++;
		}
	}
	agea=(double)a/n*100;
	ageb=(double)b/n*100;
	agec=(double)c/n*100;
	aged=(double)d/n*100;
	printf("1-18: %.2lf",agea);
	printf("%%\n");
	printf("19-35: %.2lf",ageb);
	printf("%%\n");
	printf("36-60: %.2lf",agec);
	printf("%%\n");
	printf("60??: %.2lf",aged);
	printf("%%\n");
	return 0;
}
int main(){
    int sz[100];
    int i,n;
    scanf("%d",&n);
    double b1,b2,b3,b4;
    int sum1,sum2,sum3,sum4;
    sum1=sum2=sum3=sum4=0;        
    for(i=0;i<n;i++){
        scanf("%d",&sz[i]);
        if(sz[i]<=18){
          sum1++;
          }
       else if(sz[i]>=19&&sz[i]<=35){
               sum2++;
               }
       else if(sz[i]>=36&&sz[i]<=60){
               sum3++;
               }
       else if(sz[i]>60){
               sum4++;
               }
       }

      b1=(double)100*sum1/n;
      b2=(double)100*sum2/n;
      b3=(double)100*sum3/n;
      b4=(double)100*sum4/n;

 printf("1-18: %.2lf%%\n19-35: %.2lf%%\n",b1,b2);
printf("36-60: %.2lf%%\n60??: %.2lf%%\n",b3,b4);
return 0;
}
int main(){
	int n,a[101],i,b=0,c=0,d=0,e=0;
	double bb,cc,dd,ee;
	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]>=19&&a[i]<=35) c++;
		else if(a[i]>=36&&a[i]<=60) d++;
		else e++;
	}
	bb=100.0*b/n;
	cc=100.0*c/n;
	dd=100.0*d/n;
	ee=100.0*e/n;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",bb,cc,dd,ee);
	return 0;
}
int main()
{
	int n,i;
	int a=0,b=0,c=0,d=0;
	int sz[100];
	double e,r,j,m;
	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=a+1;
		}
		else if(sz[i]>18&&sz[i]<=35)
		{
			b=b+1;
		}
		else if(sz[i]>35&&sz[i]<=60)
		{
			c=c+1;
		}
		else
		{
			d=d+1;
		}
	}
	e=a*1.0/n;
	r=b*1.0/n;
	j=c*1.0/n;
	m=d*1.0/n;
	printf("1-18: %.2lf%%\n",e*100);
	printf("19-35: %.2lf%%\n",r*100);
	printf("36-60: %.2lf%%\n",j*100);
	printf("60??: %.2lf%%\n",m*100);
	return 0;
}
int main()
{
	int n,i,j,k;
	double a=0.00,b=0.00,c=0.00,d=0.00;
	int p[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&p[i]);
	}
	for(i=0;i<n;i++)
	{
		if(1<=p[i]&&p[i]<=18)a++;
		if(19<=p[i]&&p[i]<=35)b++;
		if(36<=p[i]&&p[i]<=60)c++;
		if(61<=p[i]&&p[i]<120)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 argc, char* argv[])
{
	int n,i,age[101], a=0, b=0, c=0, d=0;
	double af,bf,cf,df;
	scanf ("%d", &n);
	for (i=0;i<n; i++)
		scanf ("%d", &age[i]);

	for (i=0; i<n; i++){
		if (age[i]<=18) 
	      a++;
		else if (age[i]>=19&&age[i]<=35)
			b++;
		else if (age[i]>=36&&age[i]<=60)
			c++;
		else if (age[i]>=61)
			d++;}
	af=(double)100*a/n;
	bf=(double)100*b/n;
	cf=(double)100*c/n;
	df=(double)100*d/n;
	printf("1-18: %.2lf%%", af);
	printf ("\n19-35: %.2lf%%", bf);
	printf ("\n36-60: %.2lf%%", cf);
	printf ("\n60??: %.2lf%%", df);
	return 0;
}
int main()
{
	int n,i,p[100],a[4]={0,0,0,0};
	double b[4];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&p[i]);
		if(p[i]<=18)a[0]++;
		else if(p[i]<=35)a[1]++;
		else if(p[i]<=60)a[2]++;
		else a[3]++;
	}
	for(i=0;i<4;i++)
	{
		b[i]=(double)a[i]/n;
		b[i]*=100.0;
	}
	printf("1-18: %.2f%%\n",b[0]);
	printf("19-35: %.2f%%\n",b[1]);
	printf("36-60: %.2f%%\n",b[2]);
	printf("60??: %.2f%%\n",b[3]);
	return 0;
}
int main()
{   int n,a[100],i;
    double b=0,c=0,d=0,e=0,sum=0;
    scanf("%d",&n);
	for(i=1;i<=n;i++){
			scanf("%d",&a[i]);
			sum++;
			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++;
			}
	}
	printf("1-18: %.2lf%%\n",100*b/sum);
	printf("19-35: %.2lf%%\n",100*c/sum);
	printf("36-60: %.2lf%%\n",100*d/sum);
	printf("60??: %.2lf%%\n",100*e/sum);
	return 0;
}