semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int i,n,a[100];
	float x=0,y=0,z=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)
			x++;
		if(a[i]>=19&&a[i]<=35)
			y++;
		if(a[i]>=36&&a[i]<=60)
			z++;
		if(a[i]>60)
			m++;
	}
	x=x*1.0/n*100;
	y=y*1.0/n*100;
	z=z*1.0/n*100;
	m=m*1.0/n*100;
	printf("1-18: %.2f%%\n",x);
	printf("19-35: %.2f%%\n",y);
	printf("36-60: %.2f%%\n",z);
	printf("60??: %.2f%%\n",m);



	return 0;
}
int main(){
    int n,i=1,k,a=0,b=0,c=0,d=0;
    double e,f,g,h;
    scanf("%d",&n);
    while(i<=n){
         scanf("%d",&k);
         if(k<=18&&k>0){
         a+=1;
         i++;
         }else if(k>18&&k<=35){
         b+=1;
         i++;
         }else if(k>35&&k<=60){
         c+=1;
         i++;
         }else{
         d+=1;
         i++;
         }
        }
         e=100.0*a/n;
         f=100.0*b/n;
         g=100.0*c/n;
         h=100.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;
 }
void main()
{
	int n,i;

	int m;
	double b,c,d,e;
	b=0;c=0;d=0;e=0;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&m);
		if(m>=1&&m<=18)
		{
			b+=1;
		}
		
		if(m>=19&&m<=35)
		{
			c+=1;
		}
		
		if(m>=36&&m<=60)
		{
			d+=1;
		}
		
		if(m>=61)
		{
			e+=1;
		}
		
	}
	printf("1-18: %.2lf",(double)(b/n)*100);
	printf("%%\n");
	printf("19-35: %.2lf",(double)(c/n)*100);
	printf("%%\n");
	printf("36-60: %.2lf",(double)(d/n)*100);
	printf("%%\n");
	printf("60??: %.2lf",(double)(e/n)*100);
	printf("%%\n");
}
int main(){
	int n,i,a[100],sum1=0,sum2=0,sum3=0,sum4=0;
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
	}
	for(i=0;i<n;i++){
		if(a[i]<=18)
			sum1+=1;
		else if(a[i]<=35&&a[i]>=19)
			sum2+=1;
		else if(a[i]<=60&&a[i]>=36)
			sum3+=1;
		else if(a[i]>60)
			sum4+=1;
	}
	double p1,p2,p3,p4;
	p1=(double)100*(double)sum1/n;
    p2=(double)100*(double)sum2/n;
    p3=(double)100*(double)sum3/n;
    p4=(double)100*(double)sum4/n;
  	printf("1-18: %.2lf%\n",p1);
    printf("19-35: %.2lf%\n",p2);
    printf("36-60: %.2lf%\n",p3);
    printf("60??: %.2lf%\n",p4);
	return 0;
}
int main()
{
  int n;
  int i,j,age[100];
  double percent[3],sum[3];
  scanf("%d\n",&n);
  for(i=0;i<n;i++)
  {
    scanf("%d",&age[i]);
  }
  sum[0]=0;sum[1]=0;sum[2]=0;sum[3]=0;
  for(j=0;j<n;j++)
  {
    if(age[j]<=18)
    {
      sum[0]+=1;
      percent[0]=sum[0]/n*100;
    }
    if((19<=age[j])&&(age[j]<=35))
    {
      sum[1]+=1;
      percent[1]=sum[1]/n*100;
    }
    if((36<=age[j])&&(age[j]<=60))
    {
      sum[2]+=1;
      percent[2]=sum[2]/n*100;
    }
  }
  percent[3]=100-percent[0]-percent[1]-percent[2];
  printf("1-18:");
  printf(" %.2lf%\n",percent[0]);
  printf("19-35:");
  printf(" %.2lf%\n",percent[1]);
  printf("36-60:");
  printf(" %.2lf%\n",percent[2]);
  printf("60??:");
  printf(" %.2lf%\n",percent[3]);
  return 0;
}
int main ()
{
	int n, a[100], i, count1=0,count2=0,count3=0,count4=0;
	double b1,b2,b3,b4;
	scanf("%d\n",&n);
	for(i=0;i<n;i++){
		scanf("%d ",&a[i]);
	}
	for(i=0;i<n;i++){
		if(a[i]<=18)
			count1+=1;
		else if(a[i]>=19&&a[i]<=35)
			count2+=1;
		else if(a[i]>=36&&a[i]<=60)
			count3+=1;
		else count4+=1;
	}
	b1=count1*100.00/n;
	b2=count2*100.00/n;
	b3=count3*100.00/n;
	b4=count4*100.00/n;
	printf("1-18: %.2f%\n19-35: %.2f%\n36-60: %.2f%\n60??: %.2f%",b1,b2,b3,b4);
	return 0;
}
int read();
void tongji();
void print();
int n,a[4],b[100];
int main()
{
    read();
    tongji();
    print();
    return 0;
}
int read()
{
    int i;
    scanf("%d",&n);
    for (i=1;i<=n;i++)
    {
        scanf("%d",&b[i]);
    }
    for (i=1;i<=4;i++){
        a[i]=0;
    }
    return 0;
}
void tongji()
{
    int i;
    for (i=1;i<=n;i++)
    {
        if (b[i]<=18)
        {
            a[1]++;
        }else {
            if (b[i]<=35)
            {
                a[2]++;
            } else {
                if (b[i]<=60)
                {
                    a[3]++;
                } else {
                    a[4]++;
                }
            }
        }
    }
    return;
}
void print()
{
    double c[4];
    int i;
    for (i=1;i<=4;i++)
    {c[i]=100.00*a[i]/n;}
    printf("1-18: %.2lf%%\n",c[1]);
    printf("19-35: %.2lf%%\n",c[2]);
    printf("36-60: %.2lf%%\n",c[3]);
    printf("Over60: %.2lf%%",c[4]);
    return;
}
int main()
{
	int n;
	int i;
	int temp;
	double a = 0, b = 0, c = 0, d = 0;
	double ra, rb, rc, rd;

	cin >> n;

	for(i = 0; i < n; i ++)
	{
		cin >> temp;

		if(1 <= temp && temp <= 18)
			a ++;
		else if(19 <= temp && temp <= 35)
			b ++;
		else if(36 <= temp && temp <= 60)
			c ++;
		else
			d ++;
	}

	ra = a * 100 / n;
	rb = b * 100 / n;
	rc = c * 100 / n;
	rd = d * 100 / n;

	cout << "1-18: " << fixed << setprecision(2) << ra << '%' << endl;
	cout << "19-35: " << rb << '%' << endl;
	cout << "36-60: " << rc << '%' << endl;
	cout << "Over60: " << rd << '%' << endl;

	
	

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

}
int main()
{
    int n,a=0,b=0,c=0,d=0,age[100],i;
    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]<=35)
                        b++;
                        else
                        {
                            if(age[i]<=60)
                            c++;
                            else
                            d++;
                        }
                    }
    }
    printf("1-18: %.2f",(double)(100*a)/(double)n);
    printf("%%\n");
    printf("19-35: %.2f",(double)(100*b)/(double)n);
    printf("%%\n");
    printf("36-60: %.2f",(double)(100*c)/(double)n);
    printf("%%\n");
    printf("60??: %.2f",(double)(100*d)/(double)n);
    printf("%%\n");
    return 0;
}
int main()
{
    float n,a,t1=0,t2=0,t3=0,t4=0,r1,r2,r3,r4;
    scanf ("%f",&n);
    for (int i=0;i<n;i++)
    { 
       scanf ("%f",&a);
       if (a<=18) t1++;
       if (a>18&&a<=35) t2++;
       if (a>35&&a<=60) t3++;
       if (a>60) t4++;
    }
    r1=t1/n*100;
    r2=t2/n*100;
    r3=t3/n*100;
    r4=t4/n*100;
    printf ("1-18: %.2f%%\n",r1);
    printf ("19-35: %.2f%%\n",r2);
    printf ("36-60: %.2f%%\n",r3);
    printf ("60??: %.2f%%\n",r4);
    return 0;
}
int main(){
    double a,b,c,d;
    int i,n,p;
    scanf("%d",&n);
    a=0;
    b=0;
    c=0;
    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
    d++;
    }
        a=100*a/n;
        b=100*b/n;
        c=100*c/n;
        d=100*d/n;
        printf("1-18: %.2lf",a);
        printf("%%\n");
        printf("19-35: %.2lf",b);
        printf("%%\n");
        printf("36-60: %.2lf",c);
        printf("%%\n");
        printf("Over60: %.2lf",d);
        printf("%%");
        return 0;
}
int main(){
	int n;
	int a;
	double sum1=0.0;
	double sum2=0.0;
	double sum3=0.0;
	double sum4=0.0;
	scanf("%d",&n);
	for(int i=0;i<n;i++){
			scanf("%d",&a);
	if(a>=1&&a<=18){
		sum1+=1.0;
	}
	else if(a>=19&&a<=35){
		sum2+=1.0;
	}
    else if(a>=36&&a<=60){
		sum3+=1.0;
	}
	else if(a>60){
		sum4+=1.0;
	}
	}
    printf("1-18: %.2lf%%\n",(double)(sum1/n)*100.0);
    printf("19-35: %.2lf%%\n",(double)(sum2/n)*100.0);
    printf("36-60: %.2lf%%\n",(double)(sum3/n)*100.0);
    printf("60??: %.2lf%%\n",(double)(sum4/n)*100.0);
	return 0;
}
int main()
{
	double q,a1=0,a2=0,a3=0,a4=0;
	int n,i;
	scanf("%d",&n);
	q=(double)n;
	for(i=0;i<n;i++)
	{
		int w;
		scanf("%d",&w);
		if(w<=18)	a1=a1+1;
		else if(w<36) a2=a2+1;
		else if (w<61) a3=a3+1;
		else a4=a4+1;
	}
	printf("1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%\n",a1*100/q,a2*100/q,a3*100/q,a4*100/q);
	return 0;
}
int main(){
    int n,y,i=1;
    double a=0,b=0,c=0,d=0,e,f,g,h;
	scanf("%d/n",&n);
	while(i<=n){
        scanf("%d",&y);
		if(y>=1&&y<=18){
			a=a+1;
		}
        if(y>=19&&y<=35){
			b=b+1;
		}
        if(y>=36&&y<=60){
			c=c+1;
		}
		if(y>=61){
			d=d+1;
		}
        i++;
	}
	e=1.0*a/n*100;
	f=1.0*b/n*100;
	g=1.0*c/n*100;
	h=1.0*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);
	return 0;
}
int main(){
   int n,i,s1=0,s2=0,s3=0,s4,sz[100];
   double p1,p2,p3,p4;
   scanf("%d\n",&n);
    for(i=0;i<n;i++){
      scanf("%d ",&sz[i]);
    }
   for(i=0;i<n;i++){
     if(sz[i]<=18){
       s1++; 
     }
     if(sz[i]>=19&&sz[i]<=35){
       s2++; 
     }
     if(sz[i]>=36&&sz[i]<=60){
       s3++; 
     }
   }
    s4=n-s1-s2-s3;
   p1=(double)100*s1/n;
   p2=(double)100*s2/n;
   p3=(double)100*s3/n;
   p4=(double)(100*s4)/n;
  printf("1-18: %.2lf%%\n",p1);
  printf("19-35: %.2lf%%\n",p2);
  printf("36-60: %.2lf%%\n",p3);
  printf("60??: %.2lf%%",p4);
 return 0;
}
int main(){
	int n,a,b,c,d,i;
	int m[100];
	double a1,b1,c1,d1;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&m[i]);
	}
	a=0;
	b=0;
	c=0;
	d=0;
	for(i=0;i<n;i++){
		if(m[i]<=18)
			a++;
		else{
			if(m[i]<=35)
				b++;
			else{
				if(m[i]<=60)
					c++;
				else
					d++;
			}
		}
	}
	a1=(double)a/n;
	b1=(double)b/n;
	c1=(double)c/n;
	d1=(double)d/n;
	a1=a1*100;
	b1=b1*100;
	c1=c1*100;
	d1=d1*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,i,a,suma=0,sumb=0,sumc=0,sumd=0,sum=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a);
		if(a<=18)
		{
         suma++;
		}
		else if(a>=19&&a<=35)
		{
			sumb++;
		}
		else if(a>=36&&a<=60)
		{
			sumc++;
		}
		else if(a>60)
		{
			sumd++;
		}
		sum++;
	}
	
	printf("1-18: %.2lf%%\n",100.0*suma/sum);
	printf("19-35: %.2lf%%\n",100.0*sumb/sum);
	printf("36-60: %.2lf%%\n",100.0*sumc/sum);
	printf("60??: %.2lf%%",100.0*sumd/sum);
return 0;
}
int main()
{
	int n,i,a[100];
	double x,y,z,k,b,c,d,e;
	scanf("%d",&n);
	b=0;
	c=0;
	d=0;
	e=0;
	for(i=0;i<n;i++){
		scanf("%d",&(a[i]));
		if(a[i]<=18)
			b++;
		if(a[i]>=19&&a[i]<=35)
			c++;
		if(a[i]>=36&&a[i]<=60)
			d++;
		if(a[i]>60)
			e++;
	}
	x=100*b/(b+c+d+e);
	y=100*c/(b+c+d+e);
	z=100*d/(b+c+d+e);
	k=100*e/(b+c+d+e);
	printf("1-18: %.2lf%%\n",x);
	printf("19-35: %.2lf%%\n",y);
	printf("36-60: %.2lf%%\n",z);
	printf("60??: %.2lf%%\n",k);
	return 0;

}
void main()
{
	int i,n;
    double e=0,b=0,c=0,d=0,l,m,x,o;
	int a[101];
	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) e++;
        if(a[i]>=19&&a[i]<=35) b++;
        if(a[i]>=36&&a[i]<=60) c++;
        if(a[i]>60) d++;
	}
    l=100*(e+0.0)/n;
    m=100*(b+0.0)/n;
    x=100*(c+0.0)/n;
    o=100*(d+0.0)/n;
	printf("1-18: ");printf("%.2lf",l);printf("%%\n");
    printf("19-35: ");printf("%.2lf",m);printf("%%\n");
    printf("36-60: ");printf("%.2lf",x);printf("%%\n");
    printf("60??: ");printf("%.2lf",o);printf("%%");
}
int main () 
{int n,i,s;
double a,b,c,d;
a=b=c=d=0;
char l='%';
scanf ("%d",&n);
for (i=0;i<n;i++)
{scanf ("%d",&s);
if (s<=18) a++;
else if (s<=35) b++;
else if (s<=60) c++;
else d++;}
a=a/n*100;
b=b/n*100;
c=c/n*100;
d=d/n*100;
printf ("1-18: %.2lf%c\n",a,l);
printf ("19-35: %.2lf%c\n",b,l);
printf ("36-60: %.2lf%c\n",c,l);
printf ("60??: %.2lf%c\n",d,l);
return 0;
}
int main()
{
  int n,i,a,b=0,c=0,d=0,e=0;
  double f=0,g=0,h=0,j=0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
  scanf("%d",&a);
  if(1<=a && a<=18)
     b++;
  if(19<=a && a<=35)
	 c++;
  if(36<=a && a<=60)
     d++;
 if(60<a)
	 e++; 
  }
  f=(double)b/n;
  g=(double)c/n;
  h=(double)d/n;
  j=(double)e/n;
  printf("1-18: %.2lf%%\n",f*100);
  printf("19-35: %.2lf%%\n",g*100);
  printf("36-60: %.2lf%%\n",h*100);
  printf("60??: %.2lf%%\n",j*100);
  return 0;
}
int main()
{
    double n,a,b,c,d,x,m,h,p,q;
    a=0;
    b=0;
    c=0;
    d=0;
    int i=1;
    scanf("%lf",&n);
    while(i<=n){
        scanf("%lf",&x);
        if(x<=18){
            a++;
        }
        else if(x>=19&&x<=35){
            b++;
        }
        else if(x>=36&&x<=60){
            c++;
        }
        else if(x>60){
            d++;
        }
        i++;
    }
    m=100*a/n;
    h=100*b/n;
    p=100*c/n;
    q=100*d/n;
   printf("1-18: %.2lf",m);
   printf("%%\n");
   printf("19-35: %.2lf",h);
   printf("%%\n");
   printf("36-60: %.2lf",p);
   printf("%%\n");
   printf("60??: %.2lf",q);
   printf("%%");
    return 0;
    
}
int main()
{
	int age[100];
	int n;
	int i;
	int sum1=0,sum2=0,sum3=0,sum4=0,tal=0;
	double a1=0,a2=0,a3=0,a4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&age[i]);
	}
	for(i=0;i<n;i++)
	{
		if(age[i]<=18) sum1++;
		if(age[i]>18&&age[i]<36) sum2++;
		if(age[i]>35&&age[i]<61) sum3++;
		if(age[i]>60) sum4++;
	}
	for(i=0;i<n;i++)
	{
		tal++;
	}
	a1=(double)sum1/tal*100;
	a2=(double)sum2/tal*100;
	a3=(double)sum3/tal*100;
	a4=(double)sum4/tal*100;
	printf("1-18: %.2lf%%\n",a1);
	printf("19-35: %.2lf%%\n",a2);
	printf("36-60: %.2lf%%\n",a3);
	printf("60??: %.2lf%%",a4);
	return 0;
}
int main ()
{
	int n,i;
	int sz[100];
	int a=0,b=0,c=0,d=0;
	
	scanf("%d",&n);


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

        if(sz[i]>=61){
			d++;
		}
	}
double a1,b1,c1,d1;
          a1=(double)100*a/(a+b+c+d);
		  b1=(double)100*b/(a+b+c+d);
          c1=(double)100*c/(a+b+c+d);
          d1=(double)100*d/(a+b+c+d);




			
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,age,p1=0,p2=0,p3=0,p4=0;
    scanf("%d",&n);
    for (i=0;i<n;i++)
    {
        scanf("%d",&age);
        if (age<=18) p1++;
        if (age>18&&age<=35) p2++;
        if (age>35&&age<=60) p3++;
        if (age>60) p4++;
    }
    printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\nOver60: %.2lf%%\n",(double)p1/n*100,(double)p2/n*100,(double)p3/n*100,(double)p4/n*100);
    return 0;
}
void main()
{
	int n,i,a[100],z=0,u=0,m=0,o=0,p=0;
	double h,j,k,l;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<19)
			u++;
		else if(a[i]<36)
			m++;
		else if(a[i]<61)
			o++;
		else 
			p++;

		z=n;
	}
	h=(float)u/z*100;
	j=(float)m/z*100;
	k=(float)o/z*100;
	l=(float)p/z*100;
	printf("1-18: %.2lf%\n",h);
	printf("19-35: %.2lf%\n",j);
	printf("36-60: %.2lf%\n",k);
	printf("60??: %.2lf%\n",l);
}
void main()
{
  int n,a[1000],i;
  float e1,b1,c1,d1,e,b,c,d;
  scanf("%d\n",&n);
  for (e=0,b=0,c=0,d=0,i=1;i<=n;i=i+1)
      { scanf("%d ",&a[i]);
        if ((a[i]>=1)&&(a[i]<=18)) e=e+1;
        if((a[i]>=19)&&(a[i]<=35)) b=b+1;
        if((a[i]>=36)&&(a[i]<=60)) c=c+1;
        if((a[i]>60))              d=d+1;
        
       }
   e1=e/n*100;
   b1=b/n*100;
   c1=c/n*100;
   d1=d/n*100;
   printf("1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%",e1,b1,c1,d1);
}
int main()
{
	int n,p=0,q=0,r=0,s=0,i;
	double c1,c2,c3,c4;
	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]<=18)
		{
			p=p+1;
		}
		if(a[i]>=19&&a[i]<=35)
		{
			q=q+1;
		}
		if(a[i]>=36&&a[i]<=60)
		{
			r=r+1;
		}
		if(a[i]>=61)
		{
			s=s+1;
		}
	}
	c1=(double)p/n*100;
	c2=(double)q/n*100;
	c3=(double)r/n*100;
	c4=(double)s/n*100;
	printf("1-18: %.2lf",c1);
	printf("%%\n");
	printf("19-35: %.2lf",c2);
	printf("%%\n");
    printf("36-60: %.2lf",c3);
	printf("%%\n");
    printf("60??: %.2lf",c4);
	printf("%%\n");
    return 0;
}
int main(int argc, char* argv[])
{   int n,a[100];
    scanf("%d",&n);
	int i;
	int s1=0,s2=0,s3=0,s4=0;
	for(i=0;i<n;i++){
		scanf("%d",&a[i]);
		if((a[i]>=1)&&(a[i]<=18))
			s1++;
		else if((a[i]>=19)&&(a[i]<=35))
			s2++;
		else if((a[i]>=36)&&(a[i]<=60))
			s3++;
		else s4++;
	}
	int S;
	S=s1+s2+s3+s4;
	printf("1-18: %.2lf%%\n",(double)s1*100/S);
	printf("19-35: %.2lf%%\n",(double)s2*100/S);
	printf("36-60: %.2lf%%\n",(double)s3*100/S);
	printf("60??: %.2lf%%\n",(double)s4*100/S);
	return 0;
}
int main()
{
	int n,age,a=0,b=0,c=0,d=0,i;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&age);
		if(age>=0&&age<=18)
			a++;
		if(age>=19&&age<=35)
			b++;
		if(age>=36&&age<=60)
			c++;
		if(age>=61)
			d++;
	}
	printf("1-18: %.2lf%%\n",100.0*a/n);
	printf("19-35: %.2lf%%\n",100.0*b/n);
	printf("36-60: %.2lf%%\n",100.0*c/n);
	printf("60??: %.2lf%%\n",100.0*d/n);
	return 0;
}
int main(){
    int n,a,b,c,d,i;
    double x,y,z,t,e,f,g,h,m;
    a=0;
    b=0;
    c=0;
    d=0;
    scanf("%d\n",&n);
    int sz[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]<36){
            b=b+1;
        }else if(sz[i]>35&&sz[i]<61){
            c=c+1;
        }else{
            d=d+1;
        }
    }
    e=a;
    f=b;
    g=c;
    h=d;
    m=n;
    x=e/m;
    y=f/m;
    z=g/m;
    t=h/m;
    printf("1-18: %.2lf%%\n",x*100);
    printf("19-35: %.2lf%%\n",y*100);
    printf("36-60: %.2lf%%\n",z*100);
    printf("Over60: %.2lf%%\n",t*100);
    return 0;
}
int main()
{
	int n,a[100];
	double a18=0.0,a19=0.0,a36=0.0,a61=0.0;
	scanf("%d",&n);
	for(int i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]<=18) a18++;
		if(a[i]<=35&&a[i]>=19) a19++;
		if(a[i]<=60&&a[i]>=36) a36++;
		if(a[i]>=61) a61++;
	}
	a18=(double)(a18/n*100);
a19=(double)(a19/n*100);
		a36=(double)(a36/n*100);
		a61=(double)(a61/n*100);
	printf("1-18: %.2lf%%\n",a18);
	printf("19-35: %.2lf%%\n",a19);
	printf("36-60: %.2lf%%\n",a36);
	printf("60??: %.2lf%%\n",a61);
	return 0;
}
int main()
{
	double s,t,r,w,n,i,a,b,c,j=0,k=0,l=0,m=0;
	scanf("%lf\n",&n);
    for(i=0;i<n;i++)
	{
		scanf("%lf",&a);
		if(a<19)
		{
			j++;
		}		
		if(a<36&&a>18)
		{
			k++;
		}
		if(a<61&&a>35)
		{
			l++;
		}
        if(a>60)
		{
			m++;
		}
	}
	r=100*j/n;
	s=100*k/n;
	t=100*l/n;
	w=100*m/n;
        printf("1-18: %.2lf%%\n",r);
	printf("19-35: %.2lf%%\n",s);
	printf("36-60: %.2lf%%\n",t);
	printf("60??: %.2lf%%\n",w);
		
	
	return 0;
}
int main(){
 int n,m; 
double a,b,c,d;
 a=0;
b=0;
c=0;
d=0;
 scanf("%d\n",&n);
 m=n;
 int age[m];
 int i;
 for(i=0;i<m;i++){
 scanf("%d",&age[i]);
 }
 for(i=0;i<m;i++){
 if(age[i]<=18){
  a=a+1;
}else if(age[i]<=35){
  b=b+1;
}else if(age[i]<=60){
  c=c+1;
}else{
  d=d+1;
}
}
a=100*a/m;
b=100*b/m;
c=100*c/m;
d=100*d/m;
printf("1-18: %.2lf",a);
printf("%%\n");
printf("19-35: %.2lf",b);
printf("%%\n");
printf("36-60: %.2lf",c);
printf("%%\n");
printf("Over60: %.2lf",d);
printf("%%\n");
 return 0;
}
int main(){
    int i=1;
    double n,num;
    double a=0,b=0,c=0,d=0;
    double w,x,y,z;
    scanf("%lf",&n);
   while(i<=n){
       scanf("%lf",&num);
       if(num<=18){
        a++;i++;}
        else if(num>=19&&num<=35){b++;i++;}
        else if(num>=36&&num<=60){c++;i++;}
        else if(num>=61){d++;i++;}
   }
       w=a/n*100;x=b/n*100;y=c/n*100;z=d/n*100;
       printf("1-18: %.2lf%%\n",w);
       printf("19-35: %.2lf%%\n",x);
       printf("36-60: %.2lf%%\n",y);
       printf("Over60: %.2lf%%\n",z);
        return 0;
}
//
// ????4.cpp ?????
// ?????? 1200012943
// ??:2012.9.29
//
int main()
{
	int n;  //??n?????
	float x1 = 0, x2 = 0, x3 = 0, x4 = 0;  //??x1 x2 x3 x4??????
         int a[100];
         cin >> n;  //??n
         for(int i = 0; i < n; i++)
	{
		cin >> a[i];  //??an
		if (a[i] <= 18)
			x1 = x1 + 1;
		else if (a[i] <= 35)
			x2 = x2 + 1;
		     else if (a[i] <= 60)
			     x3 = x3 + 1;
		          else
			          x4 = x4 + 1;
	} 
	x1 = 100 * x1 / n;  //?????
	x2 = 100 * x2 / n;
	x3 = 100 * x3 / n;
	x4 = 100 * x4 / n;
	cout << fixed;
	cout << "1-18: " << setprecision(2) << x1 << "%" << endl;  //?????
	cout << "19-35: " << setprecision(2) << x2 << "%" << endl;
	cout << "36-60: " << setprecision(2) << x3 << "%" << endl;
	cout << "60??: " << setprecision(2) << x4 << "%" << endl;
	return 0;
}
void main()
{
	int n,age,m1=0,m2=0,m3=0,m4=0,q;
	double x1,x2,x3,x4;
	scanf("%d",&n);
	q=n;

	while(q>0){
		scanf("%d",&age);
		if(age<=18){
			m1++;
		}
		else if(age>=19&&age<=35){
			m2++;
		}
		else if(age>=36&&age<=60){
			m3++;
		}
		else if(age>=61){
			m4++;
		}
		else printf("data error\n");
		q--;
	}
	x1=(double)m1/(double)n*100;
	x2=(double)m2/(double)n*100;
	x3=(double)m3/(double)n*100;
	x4=(double)m4/(double)n*100;

	printf("1-18: %.2lf%%\n",x1);
	printf("19-35: %.2lf%%\n",x2);
	printf("36-60: %.2lf%%\n",x3);
	printf("60??: %.2lf%%\n",x4);
}
int main()
{int n,a1=0,a2=0,a3=0,a4=0,sum=0;
double ax1=0,ax2=0,ax3=0,ax4=0;
scanf("%d",&n);
int age[n];
for (int i1=0;i1<n;i1++)
{
scanf("%d",&age[i1]);
if (age[i1]<19){a1++;}
if (age[i1]>18&&age[i1]<36){a2++;}
if (age[i1]>35&&age[i1]<61){a3++;}
if (age[i1]>60){a4++;}
}
sum=a1+a2+a3+a4;
ax1=(double)a1/sum*100;
ax2=(double)a2/sum*100;
ax3=(double)a3/sum*100;
ax4=(double)a4/sum*100;
printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\nOver60: %.2lf%%\n",ax1,ax2,ax3,ax4);
return 0;
}
void main()
{
	int i,n,x[100],a=0,b=0,c=0,d=0;
	float A[4];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{ 
		scanf("%d",&x[i]);
	    if(x[i]>=1&&x[i]<=18)a++;
		else if(x[i]>=19&&x[i]<=35)b++;
		else if(x[i]>=36&&x[i]<=60)c++;
		else d++;
	}
	A[0]=a*100.0/n;
	A[1]=b*100.0/n;
	A[2]=c*100.0/n;
	A[3]=d*100.0/n;
	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]);
}
void main()
{
	int n,i,a[10000],b,c,d,e;
	scanf("%d",&n);
		for(i=0;i<n;i++)
			scanf("%d",&a[i]);
		b=0;c=0;d=0;e=0;
		for(i=0;i<n;i++)
		
		{
			
			if (a[i]<=18)
				b=b++;
		    
			else if(a[i]>18&&a[i]<=35)
			c++;
			
			else if(a[i]>35&&a[i]<=60)
				d++;
			else e++;
		}
		printf("1-18: %.2f%\n",(float)b/n*100);
        printf("19-35: %.2f%\n",(float)c/n*100);
        printf("36-60: %.2f%\n",(float)d/n*100);
        printf("60??: %.2f%\n",(float)e/n*100);
}
int main()
{
	int n;
	int a=0;
	int b=0;
	int c=0;
	int d=0;
	double g,h,j,k;
	int num;
	int i=1;
	scanf("%d\n",&n);
	while(i<=n){
		scanf("%d",&num);
		if(num<19){
			a++;
		}else if(num<36){
			b++;
		}else if(num<61){
			c++;
		}else{
			d++;
		}
		i++;
	}
	g=1.0*a/n*100;
		h=1.0*b/n*100;
		j=1.0*c/n*100;
		k=1.0*d/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",g,h,j,k);
	return 0;
}
void main()
{
	int a[100],n,b=0,c=0,d=0,e=0,i;
	float u,x,y,z,f=1;
    scanf("%d",&n);
	for(i=0;i<n;i++) scanf("%d",&a[i]);
    for(i=0;i<n;i++)
	{
		if(a[i]<=18) b=b+1;
		if(a[i]>18&&a[i]<=35) c=c+1;
		if(a[i]>=36&&a[i]<=60) d=d+1;
		if(a[i]>60) e=e+1;
	}
	u=f*b/n*100;
	x=f*c/n*100;
	y=f*d/n*100;
	z=f*e/n*100;
	printf("1-18: %.2f%\n",u);
	printf("19-35: %.2f%\n",x);
	printf("36-60: %.2f%\n",y);
	printf("60??: %.2f%\n",z);
}
int main(int argc, char* argv[])
{
	int age[101],i,n,sum1=0,sum2=0,sum3=0,sum4=0;
	double p1,p2,p3,p4;
	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)
		{
			sum1++;
		}
		if(age[i]>18&&age[i]<=35)
		{
			sum2++;
		}
		if(age[i]>35&&age[i]<=60)
		{
			sum3++;
		}
		if(age[i]>60)
		{
			sum4++;
		}
	}
	p1=100*(float)sum1/(float)n;
	p2=100*(float)sum2/(float)n;
	p3=100*(float)sum3/(float)n;
	p4=100*(float)sum4/(float)n;
	printf("1-18: %.2f%%\n",p1);
	printf("19-35: %.2f%%\n",p2);
	printf("36-60: %.2f%%\n",p3);
	printf("60??: %.2f%%",p4);
	return 0;
}
int main()
{
int n,i,a,b,c,d,y[100];
double e,f,g,h;
a=0;
b=0;
c=0;
d=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&y[i]);
}
for(i=0;i<n;i++)
{
if(y[i]>=1&&y[i]<=18)
a++;
if(y[i]>=19&&y[i]<=35)
b++;
if(y[i]>=36&&y[i]<=60)
c++;
else if(y[i]>=61)
d++;
}
e=(double)100*a/n;
f=(double)100*b/n;
g=(double)100*c/n;
h=(double)100*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;
}