semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int n;
	cin>>n;
	int a[100],i;
	float b=0,c=0,d=0,e=0;//bcde?????
	for(i=0;i<n;i++)
	{
     cin>>a[i];
	}
	for(i=0;i<n;i++)
	{
	 if(a[i]<19)b=b+1;
	 if(a[i]>18&&a[i]<36)c=c+1;
	 if(a[i]>35&&a[i]<61)d=d+1;
	 if(a[i]>60)e=e+1;
	}
	b=b/n*100;
	c=c/n*100;
	d=d/n*100;
	e=e/n*100;
	cout<<"1-18: ";
	printf("%.2f",b);
	cout<<'%'<<endl;
	cout<<"19-35: ";
	printf("%.2f",c);
	cout<<'%'<<endl;
	cout<<"36-60: ";
	printf("%.2f",d);
	cout<<'%'<<endl;
	cout<<"60??: ";
	printf("%.2f",e);
	cout<<'%'<<endl;
	getchar();
	getchar();
	return 0;
}
void main()
{
	int a[100],i,n;
	double x1,x2,x3,x4,s1=0,s2=0,s3=0,s4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	    if( a[i]<19&&a[i]>0)
			s1+=1;
		if(a[i]<36&&a[i]>18)
			s2+=1;
		if(a[i]<61&&a[i]>35)
			s3+=1;
		if(a[i]<101&&a[i]>60)
			s4+=1;
	}
	x1=s1/n*100;
    x2=s2/n*100;
    x3=s3/n*100;
    x4=s4/n*100;
	printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",x1,x2,x3,x4);
}
int main()
{
int age[100],n,i;float a,b,c,d,p=0,q=0,r=0,s=0;
scanf("%d",&n);
   for(i=0;i<n;i++)
   {
      scanf("%d",&age[i]);
	  if(age[i]<=18)
	  {p+=1;}
	  if(age[i]<=35&&age[i]>=19)
	  {q+=1;}
      if(age[i]<=60&&age[i]>=36)
	  {r+=1;}
	  if(age[i]>60)
	  {s+=1;}
   }
   a=p/n*100;
   b=q/n*100;
   c=r/n*100;
   d=s/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;
}
int main(){
    int i,a=0,n,sz[101],b=0,c=0,d=0,zong=0;
    double aa,bb,cc,dd;
    scanf ("%d",&n);
    for(i=0;i<n;i++){
                                      scanf ("%d",&sz[i]);                                      
                    }
                     for(i=0;i<n;i++){
                                      zong++;
                                      if(sz[i]<=18){
                                                    a++;
                                                    }
                                      else if(sz[i]>18&&sz[i]<36){
                                           b++;
                                           }
                                      else if(sz[i]>35&&sz[i]<61){
                                           c++;
                                           }
                                      else if(sz[i]>60){
                                           d++;
                                           }
                                          }
                                      aa=100.00*a/zong;
                                      bb=100.00*b/zong;
                                      cc=100.00*c/zong;
                                      dd=100.00*d/zong;
                                      printf("1-18: %.2lf%%\n",aa);
                                      printf("19-35: %.2lf%%\n",bb);
                                      printf("36-60: %.2lf%%\n",cc);
                                      printf("60??: %.2lf%%",dd);
                                      return 0;
}
int main()
{
	int n,a[100],i,m1=0,m2=0,m3=0,m4=0;

	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]>60) m4++;
		else if(a[i]>35) m3++;
		else if(a[i]>18) m2++;
		else m1++;
	}
	printf("1-18: %.2f%%\n",(double)m1/n*100);
	printf("19-35: %.2f%%\n",(double)m2/n*100);
	printf("36-60: %.2f%%\n",(double)m3/n*100);
	printf("60??: %.2f%%\n",(double)m4/n*100);
	return 0;
}
void main()
{
 int n;
 int i;
 int a[100];
 double s,c1,c2,c3,c4;
 int b1=0,b2=0,b3=0,b4=0;
 scanf("%d",&n);
 s=(double)n;
 for(i=0;i<n;i++)
	 scanf("%d",&a[i]);
 for(i=0;i<n;i++)
 {
 if(a[i]<=18)
	 b1++;
 else if(a[i]<=35)
	 b2++;
 else if(a[i]<=60)
	 b3++;
 else if(a[i]>60)
	 b4++;
 }
 c1=b1/s*100;
 printf("1-18: %.2lf%%\n",c1);
 c2=b2/s*100;
 printf("19-35: %.2lf%%\n",c2);
 c3=b3/s*100;
 printf("36-60: %.2lf%%\n",c3);
 c4=b4/s*100;
 printf("60??: %.2lf%%\n",c4);

}
int main()
{
	int n,i,age[N];
	scanf("%d",&n);
	int a=0,b=0,c=0,d=0;
	double result;
	for(i=0;i<n;i++)
	{
		scanf("%d",&age[i]);
		if(age[i]<=18)
			a+=1;
		else if(age[i]<=35)
			b+=1;
		else if(age[i]<=60)
			c+=1;
		else d+=1;
	}
	result=a*1.0/n*100;
	printf("1-18: %.2f%%\n",result);
	result=b*1.0/n*100;
	printf("19-35: %.2f%%\n",result);
	result=c*1.0/n*100;
	printf("36-60: %.2f%%\n",result);
	result=d*1.0/n*100;
	printf("60??: %.2f%%\n",result);
	return 0;
}
int main()
{
	double n,i,a=0,b=0,c=0,d=0;
	cin>>n;
	for(i=1;i<=n;i=i+1)
	{
        double y;
		cin>>y;
		if(y<=18)a=a+1;
		else if(y<=35)b=b+1;
		else if(y<=60)c=c+1;
		else d=d+1;
	}
	double A,B,C,D;
	A=a/n*100.0;
	B=b/n*100.0;
	C=c/n*100.0;
	D=d/n*100.0;
    cout<<"1-18: "<<fixed<<setprecision(2)<<A<<"%"<<endl;
	cout<<"19-35: "<<fixed<<setprecision(2)<<B<<"%"<<endl;
	cout<<"36-60: "<<fixed<<setprecision(2)<<C<<"%"<<endl;
	cout<<"60??: "<<fixed<<setprecision(2)<<D<<"%"<<endl;
	return 0;
}
int main(){
int n,i,a[101],b[4]={0};
double c[4]={0};
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){
	b[0]+=1;
	}
if(a[i]>=19&&a[i]<=35){
	b[1]+=1;
	}
if(a[i]>=36&&a[i]<=60){
	b[2]+=1;
	}
if(a[i]>60){
	b[3]+=1;
	}
}
for(i=0;i<4;i++){
 c[i]=(b[i]*1.0*100)/n;
}
printf("1-18: %.2lf%%\n",c[0]);
printf("19-35: %.2lf%%\n",c[1]);
printf("36-60: %.2lf%%\n",c[2]);
printf("60??: %.2lf%%\n",c[3]);
return 0;
}
int main()
{
	int n;
	int a[100];
	scanf("%d\n",&n);
	int b[4]={0};
	int i;
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
		if(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]>=61)
		{b[3]++;}
	}
	double c[4];
	for(i=0;i<4;i++)
	{
		c[i]=(double)b[i]/n;
	}
	printf("1-18: %.2lf%%\n",c[0]*100);
    printf("19-35: %.2lf%%\n",c[1]*100);
	printf("36-60: %.2lf%%\n",c[2]*100);
	printf("60??: %.2lf%%\n",c[3]*100);
	return 0;
}
int main(){
	int n,i,age,a=0,b=0,c=0,d=0;
	scanf("%d",&n);
    for(i=1;i<=n;i++){
		scanf("%d",&age);
		if(age<=18){
         a++;
		}
		else if(age>=19&&age<=35){
			b++;
		}
		else if(age>=36&&age<=60){
			c++;
		}
		else{
			d++;
		}
	}
	printf("1-18: %.2lf%%\n",1.0*100*a/n);
	printf("19-35: %.2lf%%\n", 1.0*100*b/n);
	printf("36-60: %.2lf%%\n", 1.0*100*c/n);
	printf("60??: %.2lf%%\n", 1.0*100*d/n);
	return 0;
}
int main()
{
	int n,i,y[101],a=0,b=0,c=0,d=0;
	double A,B,C,D;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&y[i]);
	}
	for(i=0;i<n;i++){
		if(y[i]<=18){
			a++;
		}
		if(y[i]>18&&y[i]<=35){
			b++;
		}
		if(y[i]>35&&y[i]<=60){
			c++;
		}
		if(y[i]>60){
			d++;
		}
	}
	A=(double)a/(double)n*100;
	B=(double)b/(double)n*100;
	C=(double)c/(double)n*100;
	D=(double)d/(double)n*100;
	printf("1-18: %.2lf%%\n",A);
	printf("19-35: %.2lf%%\n",B);
    printf("36-60: %.2lf%%\n",C);
	printf("60??: %.2lf%%\n",D);
	return 0;
}
int main(){
	int n,i,a=0,b=0,c=0,d=0;
	double x=0,y=0,z=0,w=0;
	int nl[100];
	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 if(nl[i]>60){
			d++;}
	}
	x=1.0*a/n*100;
	y=1.0*b/n*100;
	z=1.0*c/n*100;
	w=1.0*d/n*100;
	printf("1-18: %.2lf%%\n",x);
	printf("19-35: %.2lf%%\n",y);
	printf("36-60: %.2lf%%\n",z);
	printf("60??: %.2lf%%\n",w);
	return 0;
}
int main()
{
	int i,n;
	double b,c,d,e;
	int a[AGE];
	int s1,s2,s3,s4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
         }
          for(i=0;i<n;i++)
          {
		if(a[i]<=18)
		{
			s1=s1+1;
		}
		else if(a[i]<=35)
		{
			s2=s2+1;
			
		}
		else if(a[i]<=60)
		{
			s3=s3+1;
			
		}
		else
		{
			s4=s4+1;
			
		}
	}
          b=(double)100*s1/n;
          c=(double)100*s2/n;
          e=(double)100*s4/n;
          d=100-b-c-e;
	    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;
}
int main(){
	int n;
	scanf("%d",&n);
	int i,a=0,b=0,c=0,d=0;
	double x,y,z,q,m,l,e,f;
	int sz[100];
	for(i=0;i<n;i++){
		scanf("%d",&sz[i]);
		if(sz[i]>=1&&sz[i]<=18){
			a+=1;}
		if(sz[i]>=19&&sz[i]<=35){
			b+=1;}
		if(sz[i]>=36&&sz[i]<=60){
			c+=1;}
		if(sz[i]>60){
			d+=1;}
	}
	x=(double)a/n;
	m=x*100;
	y=(double)b/n;
	l=y*100;
	z=(double)c/n;
	e=z*100;
	q=(double)d/n;
	f=q*100;
	printf("1-18: %.2lf%%\n",m);
    printf("19-35: %.2lf%%\n",l);
	printf("36-60: %.2lf%%\n",e);
	printf("60??: %.2lf%%\n",f);
	return 0;
}
int main()
{
	int n,i,j;
	int a[100];
	double youerbili,chengrenbili,zhongnianbili,laonianbili;
	int youer=0,chengren=0,zhongnian=0,laonian=0;
	scanf("%d", &n);
	for(i=0;i<n;i++)
		scanf("%d", &a[i]);
	for(i=0;i<n;i++)
	{
		if(a[i]<=18)
			youer+=1;
		else if(a[i]>18&&a[i]<=35)
			chengren+=1;
		else if(a[i]>=36&&a[i]<=60)
			zhongnian+=1;
		else
			laonian+=1;
	}
	youerbili=(double)youer/(double)n*100;
	chengrenbili=(double)chengren/(double)n*100;
	zhongnianbili=(double)zhongnian/(double)n*100;
	laonianbili=(double)laonian/(double)n*100;
	printf("1-18: %.2lf%%\n",youerbili);
	printf("19-35: %.2lf%%\n",chengrenbili);
	printf("36-60: %.2lf%%\n",zhongnianbili);
	printf("60??: %.2lf%%\n",laonianbili);
	return 0;
}
int main (){
	int n,x,i,a=0,b=0,c=0,d=0;
    double e,f,g,h;
	scanf("%d",&n);
    
	for(i=1;i<=n;i++)
	{scanf("%d",&x);
	if(x<=18){a=a+1;}
	else if (x<=35){b=b+1;}
	else if (x<=60){c=c+1;}
	else{d=d+1;}
	}
    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%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",e,f,g,h);
	

	return 0;
}
int main()
{
  int sum1,sum2,sum3,sum4,i,n,sum;
  double q,w,e,r;
  sum1 = 0;
  sum2 = 0;
  sum3 = 0;
  sum4 = 0;
  sum = 0;
  q = 0;
  w = 0;
  e = 0;
  r = 0;
  scanf("%d",&n);
  int a[n];
  for(i=0;i<n;i++)
  {
    scanf("%d",&a[i]);
    if(1<=a[i]&&a[i]<=18)
    {
     sum1++;
    }
    if(19<=a[i]&&a[i]<=35)
    {
      sum2++;
    }
     if(36<=a[i]&&a[i]<=60)
    {  
     sum3++;
    }
     if(a[i]>60)
    {
     sum4++;
    }
  }
    sum = sum1+sum2+sum3+sum4;
    q=(double)sum1/(double)sum;
    w=(double)sum2/(double)sum;
    e=(double)sum3/(double)sum;
    r=(double)sum4/(double)sum;
    printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",q*100,w*100,e*100,r*100);
    return 0;
 }
int main()
{
	int n;
	scanf("%d",&n);
	double a[100];
	double s1=0,s2=0,s3=0,s4=0,s5=0;
	for(int i=0;i<n;i++){
		scanf("%lf",&a[i]);
		if(a[i]<=18)
			s1++;
		if(a[i]>18&&a[i]<=35)
			s2++;
		if(a[i]>35&&a[i]<=60)
			s3++;
		if(a[i]>60)
			s4++;
		s5++;
	}
	printf("1-18: %.2lf%%\n",s1/s5*100);
	printf("19-35: %.2lf%%\n",s2/s5*100);
	printf("36-60: %.2lf%%\n",s3/s5*100);
	printf("60??: %.2lf%%\n",s4/s5*100);
	return 0;
}
int main()
{
   int n,i;
   int sz[120],sz1[10]={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]>=1&&sz[i]<=18)
       {    sz1[0]++;
       }
       else if(sz[i]>=19&&sz[i]<=35)
       {
            sz1[1]++;
       }
       else if(sz[i]>=36&&sz[i]<=60)
       {
            sz1[2]++;
       }
       else
       {
            sz1[3]++;
       }
    }
    a=(double)sz1[0]*100/n;
    b=(double)sz1[1]*100/n;
    c=(double)sz1[2]*100/n;
    d=(double)sz1[3]*100/n;
    printf("1-18: %.2lf%%\n",a);
    printf("19-35: %.2lf%%\n",b);
    printf("36-60: %.2lf%%\n",c);
    printf("60??: %.2lf%%\n",d);
    return 0;
}
void main()
{
	int n,age[100],i;
	double 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]<19) a++;
		else if(age[i]<36) b++;
		else if(age[i]<61) c++;
		else d++;
	}
	a=100*a/(double)n;
	b=100*b/(double)n;
	c=100*c/(double)n;
	d=100*d/(double)n;
	printf("1-18: %.2f%%\n",a);
	printf("19-35: %.2f%%\n",b);
	printf("36-60: %.2f%%\n",c);
	printf("60??: %.2f%%\n",d);
}
int main()
{
	int n,z[100],i,sum1=0,sum2=0,sum3=0,sum4=0;
	double p1,p2,p3,p4;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
	    scanf("%d",&z[i]);
	
		if(z[i]<19)
		{
			sum1=sum1+1;
		}
		if(z[i]>18&&z[i]<36)
		{
			sum2=sum2+1;
		}
		if(z[i]>35&&z[i]<61)
		{
			sum3=sum3+1;
		}
		if(z[i]>60)
		{
			sum4=sum4+1;
		}
	}
	p1=(double)sum1/(double)n;
        p2=(double)sum2/(double)n;
        p3=(double)sum3/(double)n;
        p4=(double)sum4/(double)n;
	printf("1-18: %.2lf%%\n",p1*100);
	printf("19-35: %.2lf%%\n",p2*100);
	printf("36-60: %.2lf%%\n",p3*100);
	printf("60??: %.2lf%%",p4*100);
	return 0;
}
void main()
{
	int n,i;
	double b,c,d,e,p1,p2,p3,p4;
    b=0.0;
	c=0.0;
	d=0.0;
	e=0.0;
	int a[100];
	scanf("%d",&n);
	for(i=0;i<=n-1;i++)
	scanf("%d",&a[i]);
	for(i=0;i<=n-1;i++)
	{
	 if(a[i]>=1&&a[i]<=18)b=b+1;
	 if(a[i]>=19&&a[i]<=35)c=c+1;
	 if(a[i]>=36&&a[i]<=60)d=d+1;
	 if(a[i]>=61)e=e+1;
	 }
	 p1=b/n*100;
	 p2=c/n*100;
	 p3=d/n*100;
	 p4=e/n*100;
	 printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",p1,p2,p3,p4);
}
int main()
{
	int n,i,a[100],sum1=0,sum2=0,sum3=0,sum4=0;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	
			if(a[i]<=18)
			sum1+=1;
		else if(a[i]<=35)
		sum2+=1;
		else if(a[i]<=60)
			sum3+=1;
		else
			sum4+=1;
	}
	printf("1-18: %.2f%%\n",(float)sum1/n*100);
	printf("19-35: %.2f%%\n",(float)sum2/n*100);
	printf("36-60: %.2f%%\n",(float)sum3/n*100);
	printf("60??: %.2f%%\n",(float)sum4/n*100);
	return 0;
}
int main()
{int n,i,a[100],e=0,b=0,c=0,d=0;
double w,x,y,z;
scanf("%d",&n);
for(i=0;i<=n-1;i++)
{
	scanf("%d",&a[i]);
	if(a[i]<=18){e++;}
	if(a[i]>18&&a[i]<=35){b++;}
	if(a[i]>35&&a[i]<=60){c++;}
	if(a[i]>60){d++;}
}
w=(double)100*e/n;x=(double)100*b/n;y=(double)100*c/n;z=(double)100*d/n;
printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",w,x,y,z);
return 0;
}
//********************************
//*????????   **
//*?????? 1200012827 **
//*???2012.10.4  **
//********************************
int main ()                  // ???
{                            // ?????
int x,k=1;                   // ?????????
double a=0.0,b=0.0,c=0.0,d=0.0,n; // ?????????????
cin >> n;                    // ????????
{                            // ????
while (k <= n)
{
cin >> x;                     // ????
if ( x<=18 )                  // ??????????????
{
a=a+1;
}
else if ( 19<=x && x<=35 )
{
b=b+1;
}
else if ( 36<=x && x<=60 )
{
c=c+1;
}
else 
{
d=d+1;
}
k=k+1;
}                      // ????
double A,B,C,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;
}                                                      // ?????
//********************************
//*????????  **
//*??????  1200062706**
//*???2012.10.07  **
//********************************
int main()
{
	double k, b=0, c=0, d=0, e=0;   //????k???????b?c?d?e????0
	cin >> k;
	for (int i=0; i < k; i++)       //??????????k??
	{
       
		int a;
		cin >> a;
		if (a>=1&&a<=18)
			b=b+1;
		if (a>=19&&a<=35)
			c=c+1;
		if (a>=36&&a<=60)
			d=d+1;
		if (a>60)
			e=e+1;
	}
	double A, B, C, D;
	A=b*100/(b+c+d+e);
	B=c*100/(b+c+d+e);
	C=d*100/(b+c+d+e);
	D=e*100/(b+c+d+e);
	cout << fixed;
	cout << setprecision(2);               //?????????
	cout << "1-18: " << A << "%" << endl;
	cout << "19-35: " << B << "%" << endl;
	cout << "36-60: " << C << "%" << endl;
	cout << "60??: " << D << "%" << endl;
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int sz[100];
	int i;
	for(i=0;i<n;i++)
	{
		scanf("%d",&(sz[i]));
	}
	int j;
	double k,p,q,m,s,a,b,c,d;
	a=b=c=d=0;
	
	k=p=q=m=s=0;
	for(j=0;j<n;j++)
	{
		if(sz[j]<=18){
			k+=1.0;
		}
		else if(sz[j]>=19&&sz[j]<=35){
			p+=1.0;
		}
		else if(sz[j]>=36&&sz[j]<=60){
			q+=1.0;
		}
		else if(sz[j]>=61){
			m+=1.0;
		}


	}
	s=p+q+m+k;
	a=k/s*100;
    b=p/s*100;
	c=q/s*100;
	d=m/s*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,sz[100],i;
	scanf("%d",&n);
	int a=0,b=0,c=0,d=0;
	double e,f,g,h;
    for(i=0;i<n;i++){
	 scanf("%d",&(sz[i]));
	}
	for(i=0;i<n;i++){
		if(sz[i]<=18)
			a+=1;
		if(sz[i]>=19&&sz[i]<=35)
			b+=1;
		if(sz[i]>=36&&sz[i]<=60)
			c+=1;
		if(sz[i]>=61)
			d+=1;
	}
	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,a,b,c,d,i,m;
i=1;
a=0;
b=0;
c=0;
d=0;
double e,f,g,h;
scanf("%d\n",&n);
while(i<=n){
scanf("%d\n",&m);
if(m<=18){a=a+1;i++;}
else if(m<=35){b=b+1;i++;}
else if(m<=60){c=c+1;i++;}
else{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("Over60: %.2lf%%\n",h);
return 0;
}
int main()
{
	int n,u[100];
	scanf("%d\n",&n);
	int i;
	for(i=0;i<n;i++)
	{
		scanf("%d",&u[i]);
	}
    double s1=0.0,s2=0.0,s3=0.0,s4=0.0;
	int sum1=0,sum2=0,sum3=0,sum4=0;
	for(i=0;i<n;i++)
	{
		if(u[i]<19)
		{sum1++;}
		else if(u[i]>18&&u[i]<36)
		{sum2++;}
		else if(u[i]>35&&u[i]<61)
		{sum3++;}
		else if(u[i]>60)
		{sum4++;}
	}
	s1=(double)100*sum1/n;
	s2=(double)100*sum2/n;
	s3=(double)100*sum3/n;
	s4=(double)100*sum4/n;
	printf("1-18: %.2lf%%\n",s1);
	printf("19-35: %.2lf%%\n",s2);
	printf("36-60: %.2lf%%\n",s3);
	printf("60??: %.2lf%%",s4);
	return 0;
}
int main(){
int n,k,x,a,b,c,d;
k=1;
scanf("%d",&n);
double A,B,C,D;
a=0;b=0,c=0;d=0;
while(k<=n){
scanf("%d",&x);
if(x<=18){
a=a+1;
}else if(x<=35){
b=b+1;
}else if(x<=60){
c=c+1;
}else{
d=d+1;
}
k++;
}
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("60??: %.2lf%%\n",D);
return 0;
}
int main()
{
  int n,c[4]={0},i;
  double a[4];
  scanf("%d",&n);
  for(i=0;i<n;i++)
      {
         int bi;
         scanf("%d",&bi);
         if(bi<=18)
           {
             c[0]++;
            }
         else if(bi>18&&bi<=35)
           {
             c[1]++;
            }
         else if(bi>35&&bi<=60)
           {
             c[2]++;
            }
         else if(bi>60)
           {
             c[3]++;
            }
      }
     for(i=0;i<4;i++)
        {
          a[i]=(double)c[i]/n*100;
        }
     printf("1-18: %.2lf",a[0]);
    printf("%%\n");
     printf("19-35: %.2lf",a[1]);
    printf("%%\n");
     printf("36-60: %.2lf",a[2]);
    printf("%%\n");
     printf("60??: %.2lf",a[3]);
    printf("%%");
  return 0;
}
int main()
{
	int n,a1=0,a19=0,a36=0,a61=0,a;
	cin>>n;//?????
	for(int i=1;i<=n;i++)//???????
	{
		cin>>a;
		if (a<=18) a1++;//??????????
		else
		{
			if(a<=35) a19++;
			else
			{
				if(a<=60) a36++;
				else a61++;
			}
		}
	}
	printf("1-18: %.2f%%\n19-35: %.2f%%\n36-60: %.2f%%\n60??: %.2f%%\n",((float)a1)/n*100,((float)a19)/n*100,((float)a36)/n*100,((float)a61)/n*100);
	//?????
	return 0;
}
int main(){
    int n,m;
    int i;
    int a=0,b=0,c=0,d=0;
    double e,f,g,h;
    scanf("%d",&n);
    for(i=1;i<=n;i++){
        scanf("%d",&m);
        if(m<=18){
            a++;
        }
        else if(m>18&&m<=35){
            b++;
        }
        else if(m>35&&m<=60){
            c++;
        }
        else{
            d++;
        }
    }
    e=a*1.0*100/n;
    f=b*1.0*100/n;
    g=c*1.0*100/n;
    h=d*1.0*100/n;
    printf("1-18: ");
    printf("%.2lf%%\n",e);
    printf("19-35: ");
    printf("%.2lf%%\n",f);
    printf("36-60: ");
    printf("%.2lf%%\n",g);
    printf("Over60: ");
    printf("%.2lf%%\n",h);
    return 0;
}
int main(){
	int n;
	scanf("%d",&n);
	double patient[100];
	for(int m=0;m<n;m++){
		scanf("%lf",&patient[m]);
	}
	double a=0,b=0,c=0,d=0;
	double p;
	for(int o=0;o<n;o++){
		p=patient[o];
		if(p>0&&p<=18)
			a++;
		if(p>=19&&p<=35)
			b++;
		if(p>=36&&p<=60)
			c++;
		if(p>60)
			d++;
	}
	printf("1-18: %.2lf%%\n",a/(a+b+c+d)*100);
	printf("19-35: %.2lf%%\n",b/(a+b+c+d)*100);
	printf("36-60: %.2lf%%\n",c/(a+b+c+d)*100);
	printf("60??: %.2lf%%",d/(a+b+c+d)*100);
	return 0;
}
int main()
{
	int a[100],n,s1=0,s2=0,s3=0,s4=0,i;
	float p1,p2,p3,p4;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	if(a[i]<=18)s1+=1;
	else if((19<=a[i])&&(a[i]<=35))s2+=1;
	else if((36<=a[i])&&(a[i]<=60))s3+=1;
	else if(a[i]>=61)s4+=1;
	}
	p1=100*(float)s1/n;
	p2=100*(float)s2/n;
	p3=100*(float)s3/n;
	p4=100*(float)s4/n;
	printf("1-18: %.2f%%\n",p1);
		printf("19-35: %.2f%%\n",p2);
			printf("36-60: %.2f%%\n",p3);
				printf("60??: %.2f%%\n",p4);
	return 0;
}
void main()
{int i,n,a=0,b=0,c=0,d=0,s[100];
double x,y,p,q;
scanf("%d\n",&n);
for(i=0;i<n;i++)
{scanf("%d",&s[i]);
if(s[i]<=18)a+=1;
if(s[i]<=35&&s[i]>=19)b+=1;
if(s[i]<=60&&s[i]>=36)c+=1;
if(s[i]>=61)d+=1;
};
x=(double)a/n*100;
y=(double)b/n*100;
p=(double)c/n*100;
q=(double)d/n*100;
printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%",x,y,p,q);
}
int main()
{
   int n,a[100],s[4]={0},i;
   double c[4];
   scanf("%d",&n);
   for(i=1;i<=n;i++){
   scanf("%d",&a[i]);
   if(a[i]>=1&&a[i]<=18)
	   s[1]+=1;
   else if(a[i]>=19&&a[i]<=35)
	   s[2]+=1;
   else if(a[i]>=36&&a[i]<=60)
	   s[3]+=1;
   else if(a[i]>=60)
	   s[4]+=1;
   }
   for(i=1;i<=3;i++){
	   c[i]=(double)s[i]/n;
   }
   c[4]=1.000000-c[1]-c[2]-c[3];
   printf("1-18: %.2lf%%\n",c[1]*100);
   printf("19-35: %.2lf%%\n",c[2]*100);
   printf("36-60: %.2lf%%\n",c[3]*100);
   printf("60??: %.2lf%%\n",c[4]*100);
   return 0;
}
void main()
{
	int i,n,a=0,b=0,c=0,d=0,s[100];
	double q,w,e,r;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&s[i]);
		if(1<=s[i]&&s[i]<19) a++;
        if(19<=s[i]&&s[i]<36) b++;
        if(36<=s[i]&&s[i]<61) c++;
        if(61<=s[i]) d++;
	}
	q=(double)a/n*100;
    w=(double)b/n*100;
    e=(double)c/n*100;
    r=(double)d/n*100;
	printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\n60??: %.2lf%\n",q,w,e,r);
}
int main()
{
    int m,n,i;
    int r=0,a=0,t=0,e=0;
    scanf("%d",&m);
    int year[m];
    for(i=0;i<m;i++)
    {
        scanf("%d",&year[i]);
    }
    for(i=0;i<m;i++)
    {
        if(year[i]>=1&&year[i]<=18)
        {
            r++;
        }  else if(year[i]>=19&&year[i]<=35){
            a++;
        }   else if(year[i]>=36&&year[i]<=60){
            t++;
        }else {
            e++;
        }
    }
    double rn=1.0*r/m*100,an=1.0*a/m*100,tn=1.0*t/m*100,en=1.0*e/m*100;
    printf("1-18: %.2lf%\n19-35: %.2lf%\n36-60: %.2lf%\nOver60: %.2lf%\n",rn,an,tn,en);
    return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int nianling[100];
	int i;
	int sum[4]={0};
	for(i=0;i<n;i++)
	{
		scanf("%d",&nianling[i]);
		if(nianling[i]>=1&&nianling[i]<=18)
			sum[0]++;
		if(nianling[i]>=19&&nianling[i]<=35)
			sum[1]++;
    	if(nianling[i]>=36&&nianling[i]<=60)
			sum[2]++;
    	if(nianling[i]>=61)
			sum[3]++;
	}
	int j;
	double bai[4];
	for(j=0;j<4;j++)
	{
		bai[j]=((double)sum[j]/(double)n)*100;
	}
	printf("1-18: %.2lf%%\n",bai[0]);
	printf("19-35: %.2lf%%\n",bai[1]);
	printf("36-60: %.2lf%%\n",bai[2]);
	printf("60??: %.2lf%%",bai[3]);
	return 0;
}
int main(){
   int pp[100];
   int i,n,a=0,b=0,c=0,d=0,sum;
   double e,f,g,j;
   scanf("%d",&n);
   for(i=0;i<n;i++){
   scanf("%d",&pp[i]);
   if(pp[i]<19){a++;}
   else if(pp[i]>=19&&pp[i]<=35){b++;}
   else if(pp[i]>=36&&pp[i]<=60){c++;}
   else if(pp[i]>=61){d++;}

 }
    sum=a+b+c+d;
    e=1.0*(100000*a/sum);
    f=1.0*(100000*b/sum);
    g=1.0*(100000*c/sum);
    j=1.0*(100000*d/sum);
    printf("1-18: %.2lf%%\n",e/1000);
    printf("19-35: %.2lf%%\n",f/1000);
    printf("36-60: %.2lf%%\n",g/1000);
    printf("60??: %.2lf%%\n",j/1000);
		return 0;
}
int main(){
int n,a,i;
double b,c,d,e;
scanf("%d",&n);
b=0;
c=0;
d=0;
e=0;
for(i=1;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 {
e=e+1;}
}
b=((double)b/n)*100;
c=((double)c/n)*100;
d=((double)d/n)*100;
e=((double)e/n)*100;

printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",b,c,d,e);

return 0;

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