semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
//??? ?????
//??? 1200012878
//9?28?
int main()
{
	int n,i,age;
	int b=0,c=0,d=0,e=0;
	double m,s,p,q;
	cin>>n;
	for(i=1;i<=n;i++)
	{
		cin>>age;
		if(age<=18&&age>=1)
			b=b+1;
		else
			if(age<=35&&age>=19)
				c=c+1;
		else
			if(age<=60&&age>=36)
				d=d+1;
		else
			if(age>=61)
				e=e+1;
	}
	m=1.0*b/n*100;
	s=1.0*c/n*100;
	p=1.0*d/n*100;
	q=1.0*e/n*100;
	cout<<"1-18: "<<setprecision(2)<<fixed<<m<<"%"<<endl;
	cout<<"19-35: "<<setprecision(2)<<fixed<<s<<"%"<<endl;
	cout<<"36-60: "<<setprecision(2)<<fixed<<p<<"%"<<endl;
	cout<<"60??: "<<setprecision(2)<<fixed<<q<<"%"<<endl;
	return 0;
}
int main()
{
   int n,i;
   double a,b,c,d;
   scanf("%d\n",&n);
   i=1;
   a=0;
   b=0;
   c=0;
   d=0;
   while(i<=n){
	   int e;
	   scanf("%d",&e);
       if(e<=18){
		   a++;
	   }else if(e>=19&&e<=35){
		   b++;
	   }else if(e>=36&&e<=60){
		   c++;
	   }else{
		   d++;
	   }
	   i++;
   }
   printf("1-18: %.2lf%%\n",a*100/(a+b+c+d));
   printf("19-35: %.2lf%%\n",b*100/(a+b+c+d));
   printf("36-60: %.2lf%%\n",c*100/(a+b+c+d));
   printf("60??: %.2lf%%\n",d*100/(a+b+c+d));
   return 0;
}
int main()
{
	int a,age,n1=0,n2=0,n3=0,n4=0,i;
	double b1,b2,b3,b4;
	scanf("%d",&a);
	for(i=0;i<a;i++)
	{
		scanf("%d",&age);
		if(age<=18)
		{
			n1++;
		}
		if(age>18&&age<=35)
		{
			n2++;
		}
	    if(age>35&&age<=60)
		{
			n3++;
		}
	    if(age>60)
		{
			n4++;
		}
	}
	b1=(double)n1/a*100;
	b2=(double)n2/a*100;
	b3=(double)n3/a*100;
	b4=(double)n4/a*100;
	printf("1-18: %.2lf%%",b1);
	printf("\n");
	printf("19-35: %.2lf%%",b2);
	printf("\n");
	printf("36-60: %.2lf%%",b3);
	printf("\n");
	printf("60??: %.2lf%%",b4);
	return 0;
}
int main()
{
	int n,i,a[100],n1=0,n2=0,n3=0,n4=0;
	double A,b,c,d;
		scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<19)
			n1++;
		else if(a[i]>18&&a[i]<36)
			n2++;
		else if(a[i]>35&&a[i]<61)
			n3++;
		else n4++;
	}
	A=(double)n1/n*100;
	b=(double)n2/n*100;
	c=(double)n3/n*100;
	d=(double)n4/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",A,b,c,d);
 return 0;
}
void main()
{
	int i,n;
    int a[100],sum[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)
			 sum[0]++;
		 else if(a[i]>=19&&a[i]<=35)
			 sum[1]++;
		 else if(a[i]>35&&a[i]<=60)
			 sum[2]++;
		 else if(a[i]>60)
			 sum[3]++;  
	}

	printf("1-18: %.2f%%\n",(float)100*sum[0]/n);
	printf("19-35: %.2f%%\n",(float)100*sum[1]/n);
	printf("36-60: %.2f%%\n",(float)100*sum[2]/n);
	printf("60??: %.2f%%\n",(float)100*sum[3]/n);
}
int main()
{
	int a1=0,a2=0,a3=0,a4=0;
	int i,n,m;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&m);
		if(m<=18 && m>=1)  a1++;
		else if(m>=19 && m<=35)  a2++;
        else if(m>=36 && m<=60)  a3++;
        else if(m>=61 && m<=100 )  a4++;
	}
	printf("1-18: %.2lf%%\n",(double)a1/n*100);
    printf("19-35: %.2lf%%\n",(double)a2/n*100);
    printf("36-60: %.2lf%%\n",(double)a3/n*100);
    printf("60??: %.2lf%%\n",(double)a4/n*100);
	return 0;
}
int main()
{
	int k, i, a = 0, b = 0, c = 0, d = 0;
	cin >> k;
	double people[100];
	for (i = 1; i <= k ; i++)
	{
		cin >> people[i];
		if (people[i] <= 18) a = a + 1;
		else if (people[i] <= 35) b = b + 1;
		else if (people[i] <= 60) c = c + 1;
		else d = d + 1;
	}
	double e, f, g, h, x;
	x = k;
	e = 100 * a / x;
	f = 100 * b / x;
	g = 100 * c / x;
	h = 100 * d / x;
	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;
}
int main(int argc, char* argv[])
{
 int i,n,count1,count2,count3,count4;
 int a[101];
 memset(a,0,sizeof(a));
 i=count1=count2=count3=count4=0;
 scanf("%d",&n);
 for(i=0;i<n;i++)
	 scanf("%d",&a[i]);
 for(i=0;i<n;i++){
	 if(1<=a[i]&&a[i]<=18)
       count1++;
 }
 for(i=0;i<n;i++){
	 if(19<=a[i]&&a[i]<=35)
       count2++;
 }
 for(i=0;i<n;i++){
	 if(36<=a[i]&&a[i]<=60)
       count3++;
 }
 for(i=0;i<n;i++){
	 if(a[i]>60)
       count4++;
 }
 printf("1-18: %.2f%%\n",(double)count1/n*100);
printf("19-35: %.2f%%\n",(double)count2/n*100);
printf("36-60: %.2f%%\n",(double)count3/n*100);
printf("60??: %.2f%%\n",(double)count4/n*100);

	return 0;
}
int main()
{
	int s[100],i;
	float a=0,b=0,c=0,d=0,h[5],n;
	scanf("%f",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&s[i]);
	}
	for(i=0;i<n;i++)
	{
		if(s[i]>=0&&s[i]<=18)
		{
			a+=1;
		}
		if(s[i]>=19&&s[i]<=35)
		{
			b+=1;
		}
		if(s[i]>=36&&s[i]<=60)
		{
			c+=1;
		}
		if(s[i]>=61)
		{
			d+=1;
		}
	}
	h[0]=a/n;
	h[1]=b/n;
	h[2]=c/n;
	h[3]=d/n;
	printf("1-18: %.2f%%\n",h[0]*100);
	printf("19-35: %.2f%%\n",h[1]*100);
	printf("36-60: %.2f%%\n",h[2]*100);
	printf("60??: %.2f%%\n",h[3]*100);

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


	scanf("%d",&n);

	for(i=1;i<=n;i++)
	{
		scanf("%d",&temp);
		if(temp<=18)
			sum[0]++;
		else if (temp<=35)
			sum[1]++;
		else if (temp<=60)
			sum[2]++;
		else  
			sum[3]++;
	}
	
	printf("1-18: %.2f%%\n",(float)(100*((float)sum[0]/(float)n)));
	printf("19-35: %.2f%%\n",(float)(100*((float)sum[1])/(float)n));
	printf("36-60: %.2f%%\n",(float)(100*((float)sum[2]/(float)n)));
	printf("60??: %.2f%%\n",(float)(100*((float)sum[3]/(float)n)));
}
int main() 
{
   int n,i;
   scanf("%d",&n);
   int a[N];
   for(i=0;i<n;i++)
   {
    scanf("%d",&a[i]);
   }
   int b,c,d,e;
   b=0;c=0;d=0;e=0;
   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++;
     }
   }
   double b1,c1,d1,e1;
 b1=(double)b/n*100; c1=(double)c/n*100; d1=(double)d/n*100; e1=(double)e/n*100;
   printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",b1,c1,d1,e1);
   return 0;
}
int main(){
    int n;
    scanf("%d",&n);
    int y[N];
    int i;
    for(i=0;i<n;i++){
        scanf("%d",&y[i]);
    }
    int a;
    int s[4]={0};
    int j;    
    for(j=0;j<n;j++){
        if(y[j]<=18){
             s[0]++;
        }
        else if((y[j]>=19)&&(y[j]<=35)){
             s[1]++;
        }
        else if((y[j]>=36)&&(y[j]<=60)){
             s[2]++;
        }
        else if(y[j]>=60){
             s[3]++;
        }
     }
     double bfb[4];
     int t;
     for(t=0;t<4;t++){
          bfb[t]=100.0*s[t]/n;
     }
     printf("1-18: %.2lf%%\n",bfb[0]);
     printf("19-35: %.2lf%%\n",bfb[1]);
     printf("36-60: %.2lf%%\n",bfb[2]);
     printf("Over60: %.2lf%%\n",bfb[3]);
     return 0;
}
int main(){
    int i,n,a[101];
    double b,c,d,e,sum1=0,sum2=0,sum3=0,sum4=0;
    scanf("%d",&n);
    for(i=1;i<=n;i++){scanf("%d",&a[i]);
                      if(a[i]<=18)sum1+=1;
                      else if(a[i]>=19&&a[i]<=35)sum2+=1;
                      else if(a[i]>=36&&a[i]<=60)sum3+=1;
                      else sum4+=1;}
    b=(100*sum1)/n;c=(100*sum2)/n;d=(100*sum3)/n;e=(100*sum4)/n;
    printf("1-18: %.2lf%%\n",b);
    printf("19-35: %.2lf%%\n",c);
    printf("36-60: %.2lf%%\n",d);
    printf("60??: %.2lf%%\n",e);
    return 0;
}
void main()
{
	double n;
	scanf("%lf",&n);
	int i;
	double a[100];
	for(i=0;i<n;i++)
	{
		scanf("%lf",&a[i]);
	}
	int count1=0,count2=0,count3=0,count4=0;
	for(i=0;i<n;i++)
	{
		if(a[i]<19)
			count1++;
		if(a[i]>=19&&a[i]<=35)
			count2++;
		if(a[i]>=36&&a[i]<=60)
			count3++;
		if(a[i]>60)
			count4++;
	}
	double per1=count1/n*100;
	double per2=count2/n*100;
	double per3=count3/n*100;
	double per4=count4/n*100;
	printf("1-18: %.2lf%%\n",per1);
	printf("19-35: %.2lf%%\n",per2);
	printf("36-60: %.2lf%%\n",per3);
	printf("60??: %.2lf%%\n",per4);
}
int main(){
	int n;
	int a;
	int b=0;
	int c=0;
	int d=0;
	int e=0;
	scanf("%d",&n);
	int i;
	for(i=0;i<n;i++){
		scanf("%d",&a);
		if(a<=18){
			b=b+1;
		}else if(a>=19&&a<=35){
			c=c+1;
		}else if(a>=36&&a<=60){
			d=d+1;
		}else if(a>60){
			e=e+1;
		}
	}
	double f,g,h,k;
	f=1.0*b/n*100;
	g=1.0*c/n*100;
	h=1.0*d/n*100;
	k=1.0*e/n*100;
	printf("1-18: ");
	printf("%.2lf%%\n",f);
	printf("19-35: ");
	printf("%.2lf%%\n",g);
	printf("36-60: ");
	printf("%.2lf%%\n",h);
	printf("60??: ");
	printf("%.2lf%%\n",k);
	return 0;
}
int main()
{
    int n,a,c1,c2,c3,c4; //n????a??????,ci????
    c1=c2=c3=c4=0;
    cin>>n;

    for (int i=0;i<n;i++)
    {
        cin>>a;
        if (a<=18) c1++;
        else if (a<=35) c2++;
        else if (a<=60) c3++;
        else c4++;
    }
    float s=c1+c2+c3+c4;

    printf("1-18: %.2f%c\n",c1/s*100,'%');
    printf("19-35: %.2f%c\n",c2/s*100,'%');
    printf("36-60: %.2f%c\n",c3/s*100,'%');
    printf("60??: %.2f%c\n",c4/s*100,'%');


    return 0;
}
int year[100];
double n,a,b,c,d;
int main()
{
	int i;
	scanf("%lf",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&year[i]);
		if(year[i]>=1&&year[i]<=18)
			a++;
		if(year[i]<=35&&year[i]>=19)
			b++;
		if(year[i]>=36&&year[i]<=60)
			c++;
		if(year[i]>60)
			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%%\n",a);
	printf("19-35: %.2lf%%\n",b);
	printf("36-60: %.2lf%%\n",c);
	printf("60??: %.2lf%%",d);
	return 0;
}
int main()
{
double n=0,age=0,a=0,b=0,c=0,d=0,i=0;//n????? a?b?c?d???18???19-35?36-60?61???????   age?????i??????? 
cin>>n;
       for(i=1;i<=n;i++)
       {
       cin>>age;
       if(age<=18)
       a+=1;
       if((age>=19)&&(age<=35))
       b+=1;
       if ((age>=36)&&(age<=60))   
       c+=1;
       if(age>=61)
       d+=1;             
       }
a=a/n*100;b=b/n*100;c=c/n*100;d=d/n*100;
printf("1-18: %.2f%\n",a);   
printf("19-35: %.2f%\n",b);  
printf("36-60: %.2f%\n",c);  
printf("60??: %.2f%\n",d);  
return 0;
}
main()
{
int i,n,m,j,k;
int A[100];
int P1=0,P2=0,P3=0,P4=0;

scanf("%d",&n);

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

for(i=0;i<n;i++)
{
	if(A[i]<=18) P1++;
	if((A[i]>=19)&&(A[i]<=35)) P2++;
	if((A[i]>=36)&&(A[i]<=60)) P3++;
	if(A[i]>=61) P4++;
}

printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",
(double)100*P1/n,(double)100*P2/n,(double)100*P3/n,(double)100*P4/n);

return 0;
}
int main(){
    int n,i;
    int a[10000];
    int k=0,l=0,m=0,q=0;
    double s;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d",&a[i]);
    }
    for(i=0;i<n;i++){
        if(a[i]<=18){
            k+=1;
        }
        if(a[i]>=19&&a[i]<=35){
            l+=1;
        }
        if(a[i]>=36&&a[i]<=60){
            m+=1;
        }
        if(a[i]>60){
            q+=1;
        }
    }
    printf("1-18: %.2lf%%\n",(double)100*k/n);
    printf("19-35: %.2lf%%\n",(double)100*l/n);
    printf("36-60: %.2lf%%\n",(double)100*m/n);
    printf("Over60: %.2lf%%\n",(double)100*q/n);
    return 0;
}
int main()
{
	int i,n,a;
	double sum1=0,sum2=0,sum3=0,sum4=0;
	scanf("%d\n",&n);
    for(i=0;i<n;i++){
        scanf("%d",&a);
		if(a<=18&&a>=1)
           sum1++;
        else  if(a<=35&&a>=19)
		   sum2++;
        else if(a<=60&&a>=36)
		   sum3++;
        else if(a>=60)
		   sum4++;
	}
	sum1=(double)100*sum1/n;
    sum2=(double)100*sum2/n;
    sum3=(double)100*sum3/n;
    sum4=(double)100*sum4/n;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",sum1,sum2,sum3,sum4);
	return 0;
}
int main()
{
int n,i;
double t,s,h,y,lt,ls,lh,ly;
int k[100];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d ",&k[i]);
if(k[i]<=18)
t++;
else if(k[i]>18&&k[i]<=35)
s++;
else if(k[i]>35&&k[i]<=60)
h++;
else if(k[i]>60)
y++;
}
t=(double)t/n;
s=(double)s/n;
h=(double)h/n;
y=(double)y/n;
lt=100*t;
ls=100*s;
lh=100*h;
ly=100*y;
printf("1-18: %.2lf%\n",lt);
printf("19-35: %.2lf%\n",ls);
printf("36-60: %.2lf%\n",lh);
printf("60??: %.2lf%\n",ly);
return 0;
}
int main(){
int n,i,aa;
double a1=0,b1=0,c1=0,d1=0;
scanf("%d",&n);
for(i=0;i<n;i++){
	scanf("%d",&aa);
	if(aa<=18){
	  a1++;
	}else if(aa<=35){
	  b1++;
	}else if(aa<=60){
	  c1++;
	}else if(aa>60){
	  d1++;
	}
	

}printf("1-18: %.2lf%%\n",100*a1/n);
	printf("19-35: %.2lf%%\n",100*b1/n);
	printf("36-60: %.2lf%%\n",100*c1/n);
	printf("60??: %.2lf%%",100*d1/n);
return 0;
}
int main(){
	int n,i,age[100],m=0,x=0,p=0,q=0;
	double M,N,P,Q;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age[i]);
	}
	for(i=0;i<n;i++){
		if(age[i]<=18&&age[i]>=1){
			m++;
		}
		if(19<=age[i]&&age[i]<=35){
			x++;
		}
		if(36<=age[i]&&age[i]<=60){
			p++;
		}
		if(age[i]>60){
			q++;
		}
	}
	M=((double)m/n)*100;
	N=((double)x/n)*100;
	P=((double)p/n)*100;
	Q=((double)q/n)*100;
	printf("1-18: %.2lf%%\n",M);
	printf("19-35: %.2lf%%\n",N);
	printf("36-60: %.2lf%%\n",P);
	printf("60??: %.2lf%%\n",Q);
	return 0;
}
//********************************************
//*????9.cpp                            *
//*?????                                *
//*???1200012892                          *
//*???2012.10.03                          *
//*?????????????                *
//********************************************
int main()
{
	double k,m,n,x=0.0,y=0.0,z=0.0,w=0.0;
	double a,b,c,d;                    //??????
	cin >> k;
	for (m=1;m <= k;m=m+1)               //????
{
		cin >> n;
if (n <= 18)
{x=x + 1;}
if(n <= 35 && n >= 19)
{y=y + 1;}
if(n <= 60 && n >= 36)
{z=z + 1;}
if (n >= 61)
{w=w + 1;}
	}
	a=x / k * 100;
	b=y / k * 100;
	c=z / k * 100;
	d=w / k * 100;                        //?????
	cout << fixed;
	cout << setprecision(2) << "1-18: "  << a << "%" <<endl;
    cout << setprecision(2) << "19-35: "  << b << "%" <<endl;
    cout << setprecision(2) << "36-60: "  << c << "%" <<endl;  
    cout << setprecision(2) << "60??: " << d << "%" <<endl;//????
return 0;                                   //?????
}
int main(){
   int n,sz[100],i;
   double s1=0,s2=0,s3=0,s4=0;
   scanf("%d",&n);
   for(i=0;i<n;i++){
     scanf("%d",&sz[i]);
	 if(sz[i]<=18){
	   s1++;
	 }
	 if(sz[i]>18&&sz[i]<=35){
	   s2++;
	 }
	 if(sz[i]>35&&sz[i]<=60){
	   s3++;
	 }
	 if(sz[i]>60){
	   s4++;
	 }
   }
       s1=1.0*100*s1/n;
	   s2=1.0*100*s2/n;
	   s3=1.0*100*s3/n;
       s4=1.0*100*s4/n;
  printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",s1,s2,s3,s4);
return 0;
}
int main(){
    int n;
    double a,b,c,d;
    scanf("%d\n",&n);
  int sz[n];
  int j,r;
   a=0;
   b=0;
   c=0;
   d=0;
  for(j=0;j<n;j++){
      scanf("%d ",&sz[j]);
      if(sz[j]<=18){
          a=a+1;
      }else{
          if(sz[j]<=35){
              b=b+1;
          }else{
              if(sz[j]<=60){
                  c=c+1;
              }else{
                  d=d+1;
              }
          }
      }
      }
      a=100*a/n;
      printf("1-18: %.2lf%%\n",a);
      b=100*b/n;
      printf("19-35: %.2lf%%\n",b);
      c=100*c/n;
      printf("36-60: %.2lf%%\n",c);
      d=100*d/n;
      printf("Over60: %.2lf%%",d);
      return 0;
}
int main()
{
int n,z[100],i;
double a=0,b=0,c=0,d=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&z[i]);
if(z[i]>0&&z[i]<19)
{
a=a+1;
}
if(z[i]>18&&z[i]<36)
{
b=b+1;
}
if(z[i]>35&&z[i]<61)
{
c=c+1;
}
else if(z[i]>60)
{
d=d+1;
}}
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);
return 0;
}
int main()
{
	int n,i,t,s=0,a=0,b=0,c=0,d=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&t);
		s++;
		if(t<=18&&t>0)
			a++;
		else if(t<=35)
			b++;
		else if(t<=60)
			c++;
		else if(t>60)
			d++;
	}
	printf("1-18: %.2lf%%\n",(double)a*100/(double)s);
	printf("19-35: %.2lf%%\n",(double)b*100/(double)s);
	printf("36-60: %.2lf%%\n",(double)c*100/(double)s);
	printf("60??: %.2lf%%\n",(double)d*100/(double)s);
	return 0;
}
int main( int argc, char* argv[] ){
	int amount = 0, i;
	double age[max] = {0}, sum = 0;
	int year = 0;

	scanf( "%d", &amount );

	for ( i = 0; i < max; i++ ){
		age[i] = 0;
	}
	
	for ( i = 0; i < amount; i++ ){
		scanf( "%d", &year );
		
		if ( year <= 18 ){
			age[0]++;
		}
		else if ( year <= 35 && year >= 19 ){
			age[1]++;
		}
		else if ( year <= 60 && year >= 36 ){
			age[2]++;
		}
		else{
			age[3]++;
		}
	}
	
	for ( i = 0; i < max; i++ ){
		sum += age[i];
	}
	for ( i = 0; i < max; i++ ){
		age[i] = age[i] / sum * 100;
	}
	printf("1-18: %.2lf%%\n", age[0]);
	printf("19-35: %.2lf%%\n", age[1]);
	printf("36-60: %.2lf%%\n", age[2]);
	printf("60??: %.2lf%%\n", age[3]);

	return 0;
}
int main()
{
	int n,i;
	int a[100];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	int w,x,y,z;
	w=0;
	x=0;
	y=0;
	z=0;
	for(i=0;i<n;i++)
	{
		if(a[i]<=18){
			w++;
		}
		else if(a[i]>18&&a[i]<=35){
			x++;
		}
		else if(a[i]>35&&a[i]<=60){
			y++;
		}
		else{
			z++;
		}
	}
	double b,c,d,e;
	b=(double)w/n*100;
	c=(double)x/n*100;
	d=(double)y/n*100;
	e=(double)z/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",b,c,d,e);
	return 0;
}
int main(int argc, char* argv[])
{
	int i,n,a[100];
	double b1=0,b2=0,b3=0,b4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	for(i=0;i<n;i++)
	{
		if(a[i]>0&&a[i]<=18)
			b1++;
		else if(a[i]>=19&&a[i]<=35)
			b2++;
		else if(a[i]>=36&&a[i]<=60)
			b3++;
		else
			b4++;
	}
	printf("1-18: %.2lf%%\n",100*b1/n);
	printf("19-35: %.2lf%%\n",100*b2/n);
	printf("36-60: %.2lf%%\n",100*b3/n);
	printf("60??: %.2lf%%\n",100*b4/n);
	return 0;
}
/*****************?????***************
?????
*****************************************/
int main ()
{
    int n;
    cin>>n;//?????
    int age;//?????? 
    int a[5];//??????
    a[1]=a[2]=a[3]=a[4]=0;
    for (int i=0;i<n;i++)
    {
        cin>>age; 
        if ( age<=18) a[1]++;
        else 
             if (age <=35) a[2]++;
             else 
                  if (age<=60) a[3]++;
                  else
                      a[4]++;
        //cout<<a[1]<<a[2]<<a[3]<<a[4]<<endl;???? 
    }
    double  per[5];
    for (int i=1;i<5;i++)
    {
        per[i]=(double)a[i]/n*100;
    }
    cout<<"1-18: ";
    printf("%.2f",per[1]);
    cout<<"%"<<endl; 
    cout<<"19-35: ";
    printf("%.2f",per[2]);
    cout<<"%"<<endl; 
    cout<<"36-60: ";
    printf("%.2f",per[3]);
    cout<<"%"<<endl; 
    cout<<"60??: ";
    printf("%.2f",per[4]);
    cout<<"%"<<endl;
    return 0;
}
int main(){
	int n,i,a=0,b=0,c=0,d=0,k;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&k);
		if(k<19){
		a++;	
		}else if(k<36){
			b++;
		}else if(k<61){
			c++;
		}else{
			d++;
		}
	}
	printf("1-18: %.2lf",100.0*a/n);
	printf("%%\n");
	printf("19-35: %.2lf",100.0*b/n);
		printf("%%\n");
	printf("36-60: %.2lf",100.0*c/n);
		printf("%%\n");
	printf("60??: %.2lf",100.0*d/n);
		printf("%%");
	return 0;
}
int main()
{
	int n,score[100],i;
	double d18=0,d35=0,d60=0,up=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&score[i]);
		if(score[i]>60)
			up++;
		else if(score[i]<=60&&score[i]>=36)
			d60++;
		else if(score[i]<=35&&score[i]>=19)
			d35++;
		else if(score[i]<=18)
			d18++;
		
	}

	printf("1-18: %.2f%%\n",(double)d18/n*100);
	printf("19-35: %.2f%%\n",(double)d35/n*100);
	printf("36-60: %.2f%%\n",(double)d60/n*100);
	printf("60??: %.2f%%\n",(double)up/n*100);


	return 0;
}
int main()
{
	int i,n;
	int x[101];
	scanf("%d",&n);
	double a=0.0,b=0.0,c=0.0,d=0.0;
	double e,f,g,h;

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

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

	scanf("%d\n", &n);
	for(i = 0; i < n; i++)
	{
		scanf("%d", &age[i]);
		if(age[i] > 60)
		{
			d++;
		}
		else if(age[i] <= 60 && age[i] >=36)
		{
			c++;
		}
		else if(age[i] <= 35 && age[i] >= 19)
		{
			b++;
		}
		else 
		{
			a++;
		}
	}

	

	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 n,i;
	int a=0,b=0,c=0,d=0;
	int age[100];
	float aa,bb,cc,dd;
	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;
	if (age[i]>=19&&age[i]<=35)
			b=b+1;
		if (age[i]>=36&&age[i]<=60)
			c=c+1;
		if (age[i]>60)
			d=d+1;}
	aa=(float)a/n;bb=(float)b/n;cc=(float)c/n;dd=(float)d/n;
	printf ("1-18: %.2f%%\n",100*aa);
	printf ("19-35: %.2f%%\n",100*bb);
	printf ("36-60: %.2f%%\n",100*cc);
	printf ("60??: %.2f%%",100*dd);
	return 0;
}
int main()
{
	int n,i,m;
	double e,f,g,h,a=0,b=0,c=0,d=0;
	cin>>n;
	for(i=1;i<=n;i++)
	{
		cin>>m;
		if(m<=18)
			a=a+1;//??????
		if(m>=19&&m<=35)
			b=b+1;//??
		if(m>=36&&m<=60)
			c=c+1;//??
		if(m>60)
			d=d+1;//??
	}
	e=a/n*100;
	f=b/n*100;
	g=c/n*100;
	h=d/n*100;
	cout<<"1-18:"<<" ";//?????
		printf("%0.2f", e);
			cout<<"%"<<endl;
			cout<<"19-35:"<<" ";
			printf("%0.2f", f);
			cout<<"%"<<endl;
			cout<<"36-60:"<<" ";
			printf("%0.2f", g);
			cout<<"%"<<endl;
			cout<<"60??:"<<" ";
			printf("%0.2f", h);
			cout<<"%"<<endl;
		return 0;
}
//*****************************************
//*function:?????                                                        *
//*Created on: 2012-10-7                  *
//*Author: ???       1200062705             *
//*****************************************
int main()                                         //?????
{
   double i,age,n,a = 0.0,b = 0.0,c = 0.0,d = 0.0; //???????i,a?b,c?d???age,??n
   cin >> n;                                       //??n
   for(i = 1;i <= n ;i++)                          //?????????
   {
	  cin >> age;
	  if(1 <= age &&age<= 18)  a++;
	  else if (19 <= age&&age <= 35) b++;
	  else if  (36 <=age&&age <= 60) c++;
	  else d++;
   }
        a = a / n * 100;                           //??????????????????????
        b = b / n * 100;
        c= c / n * 100;
        d = d / n * 100;
        cout << fixed;                             //????

        cout << "1-18: " << setprecision(2) << a << "%" << endl;   //?????
        cout << "19-35: " << setprecision(2) << b << "%" << endl;
        cout << "36-60: " << setprecision(2) << c << "%" << endl;
        cout << "60??: " << setprecision(2) << d << "%" << endl;
   return 0;
}                                                                   //?????
int main()
{
	int n,i,n1 = 0,n2 = 0,n3 = 0,n4 = 0;
	int y;
	double a,b,c,d,x;
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%d",&y);
		if (y>=0 && y<=18)
			n1 += 1;
		else if (y>=19 && y<=35)
			n2 += 1;
		else if (y>=36 && y<=60)
			n3 += 1;
		else 
			n4 += 1;
	}
	x = n;
	a = n1/x;
	b = n2/x;
	c = n3/x;
	d = n4/x;
	printf("1-18: %.2lf%%\n",100*a);
	printf("19-35: %.2lf%%\n",100*b);
	printf("36-60: %.2lf%%\n",100*c);
	printf("60??: %.2lf%%\n",100*d);
	return 0;
}
int main(){
	int n,a[100]={0},i;
	double x1=0.0,x2=0.0,x3=0.0,x4=0.0;
	double c1,c2,c3,c4;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++){
		if(a[i]>60) x4++;
		else if(a[i]>35) x3++;
		else if(a[i]>18) x2++;
		else x1++;
	}
	c1=(x1/n)*100;
	c2=(x2/n)*100;
	c3=(x3/n)*100;
	c4=(x4/n)*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",c1,c2,c3,c4);
	return 0;
}