semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
  int l,i,j,s,k,m;
  int b[100],c[100],d[101];
  char a[101],e[100];
  scanf("%s",a);
  l=strlen(a);
  if(l==1)
  {
     printf("0\n");
     printf("%d",a[0]-'0');     
  }
  else
  {
      if(l==2&&a[0]-'0'==1&&a[1]-'0'<3)
      {
        printf("0\n");
        printf("%d",a[1]-'0'+10);                               
      }
  else
  {
   for(i=0;i<l;i++)
   {
     d[i]=a[i]-'0';               
   }
   for(i=0;i<l;i++)
    {
      b[i]=d[i]/13;
      c[i]=d[i]%13;
      d[i+1]=c[i]*10+d[i+1];            
    }
    s=0;
   if (b[1]==0)
   {
     for(j=2;j<l;j++)
     {
       e[j-2]=b[j]+'0'; 
     }
     e[l-2]='\0';
     puts(e);
   }  
   else
   {
     for(j=1;j<l;j++)
     {
       e[j-1]=b[j]+'0';              
     }  
     e[l-1]='\0';
     puts(e);
   }
   printf("%d",c[i-1]);
  }
  }
  getchar();
  getchar();
}
int main()
{
	char num[102];
	cin >> num;
	int i, a, b;
	char x[102];
	if (strlen(num) == 1)
	{
		cout << '0'<< endl;
		cout << num[0] << endl; 
	}
	else if(strlen(num) == 2)
	{
		a = (num[0] - 48) * 10 + (num[1] - 48);
		cout << a / 13 << endl;
		cout << a % 13 << endl;
	}
	else
	{
	a = (num[0] - 48) * 10 + (num[1] - 48);
	b = a % 13;
	if (a >= 13)
	{
		x[0] = a / 13 + 48;
		for (i = 1; i <= strlen(num) - 2; i++)
		{
			a = (num[i + 1] - 48) + b * 10;
			b = a % 13;
			x[i] = a / 13 + 48;
		}
		for (i = 0; i <= strlen(num) - 3; i++)
		{
			cout << x[i];
		}
		cout << x[strlen(num) - 2] << endl;
		cout << b << endl;
	}
	else
	{
		for (i = 2; i <= strlen(num) - 1; i++)
		{
			a = (num[i] - 48) + b * 10;
			b = a % 13;
			x[i] = a / 13 + 48;
		}
		for (i = 2; i <= strlen(num) - 2; i++)
		{
			cout << x[i];
		}
		cout << x[strlen(num) - 1] << endl;
		cout << b << endl;
	}
	}
	return 0;
}
/*
??:??13
??:??? 1200012921
??:2012.11.14
*/

int main()
{
	char a[101];             //????a????????
	int i, j, k;             //????
	int b[101], c[101];      //?????????????c?????
	int lenA, yushu, pro;    //lenA???????????yushu????????????pro??????????
	cin.getline(a, 101);     //?????
	lenA = strlen(a);        //???????
	for (i = 0, j = 1; i <= lenA - 1; i++)  //?????????????
	{
		b[j++] = a[j - 1] - '0';
	}
	if ((lenA == 2 && b[1] * 10 + b[2] <= 12) || lenA == 1) //???????1~12??
	{
		if (lenA == 1)                                      //??1~9????0??????
			cout << 0 << endl << b[1] << endl;
		else
			cout << 0 << endl << b[1] * 10 + b[2] << endl;  //??10~12????0??????
	}
	else                                                    //??(????????13)
	{
		if ( b[1] * 10 + b[2] >= 13)                        //?????????13?????????????1
		{
			yushu = (b[1] * 10 + b[2]) % 13;                //???????????
			c[2] = (b[1] * 10 + b[2] - yushu) / 13;         //?????
			for (i = 3; i <= lenA; i++)                     //??????????????,???????
			{
				pro = yushu * 10 +b[i];
				yushu = pro % 13;
				c[i] = (pro - yushu) / 13;
			}
			for (k = 2; k <= lenA; k++)                     //???
			{
				cout << c[k];
			}
			cout << endl;
		}	
		else                                               //??(???????13?????????????2)
		{
			yushu = (b[1] * 100 + b[2] * 10 + b[3]) % 13;  //???????????
			c[3] = (b[1] * 100 + b[2] * 10 + b[3] - yushu) / 13;   //?????
			for (i = 4; i <= lenA; i++)                    //??????????????,???????
			{
				pro = yushu * 10 +b[i];
				yushu = pro % 13;
				c[i] = (pro - yushu) / 13;
			}
			for (k = 3; k <= lenA; k++)                    //???
			{
				cout << c[k];
			}
			cout << endl;
		}
		cout << yushu << endl;                             //?????????????
	}
	return 0;
}
int main()
 {
          int l,m,n,i,j,k;
          char a[100],b[100];
          scanf("%s",a);
          l=strlen(a);
          for(i=0;i<l-1;i++)
          {
                   m=(a[i]-'0')*10+a[i+1]-'0';
                   b[i]=m/13+'0';
                   a[i+1]=m%13+'0';
          }
          b[l-1]='\0';
          if(b[0]=='0'&&b[1]!='\0')
           for(j=0;j<i;j++)
             b[j]=b[j+1];
          if(l==1)
          {
                  b[0]='0';
                  b[1]='\0';
                  }
          puts(b);
          printf("%d",a[l-1]-'0');
          getchar();
          getchar();
 }
int main()
{
    char a[110];
    int b[110];
    char c[110];
    int i,l,s,y;
    scanf("%s",a);
    l=strlen(a);
    for(i=0;i<l;i++)
        b[i]=a[i]-'0';
    if(l==1)
    {
        printf("0\n");
        printf("%d\n",b[0]);
        return (0);
    }
    if(l==2&&b[0]==1&&b[1]<=2)
    {
        printf("0\n");
        printf("%d%d\n",b[0],b[1]);
        return (0);
    }
    else
    {
        if(b[0]==1&&b[1]<=2)
        {
            s=b[0]*100+b[1]*10+b[2];
            c[0]=s/13+'0';
            y=s%13;
            for(i=3;i<l;i++)
            {
                s=y*10+b[i];
                c[i-2]=s/13+'0';
                y=s%13;
            }
            c[l-2]='\0';
            printf("%s\n",c);
            printf("%d\n",y);
        } 
        else
        {
            s=b[0]*10+b[1];
            c[0]=s/13+'0';
            y=s%13;
            for(i=2;i<l;i++)
            {
                s=y*10+b[i];
                c[i-1]=s/13+'0';
                y=s%13;
            }
            c[l-1]='\0';
            printf("%s\n",c);
            printf("%d\n",y);
        }
    }
}
main()
{
      char n[100],m[100];
      gets(n);
      
      int i,k,p,r;
      k = strlen(n);
      r = n[0] - '0';
      
      for(i = 0;i < k - 1;i++)
      {
          p = (n[i+1] - '0' + r * 10) / 13;
          m[i] = p;
          r = (n[i+1] - '0' + r * 10) % 13;
      }
      
      if(n[1] == '\0' || (n[2] == '\0' && n[0] <= '1' && n[1] < '3'))
      printf ("0");
      
      if((int)m[0] == 0)
      for(i = 1;i < k - 1;i++)
      printf("%d",m[i]);
      else
      for(i = 0;i < k - 1;i++)
      printf("%d",m[i]);
      
      printf("\n");
      printf("%d",r);
}
main()
{
     char s[100]={0};
     int a[100]={0};
     int i,k=0;
     int b[100]={0};
      scanf("%s",s);
     int len=strlen(s);
     for(i=0;i<len;i++)
     {
                       a[i]=s[i]-'0';
                       b[i]=(k*10+a[i])/13;
                        k=(k*10+a[i])%13;
     }
     if(len==1)  printf("0\n");
     else
     {
     if(b[1]==0)
                for(i=2;i<len-1;i++)
                         printf("%d",b[i]);
     else
         for(i=1;i<len-1;i++)
                  printf("%d",b[i]);
     printf("%d\n",b[len-1]);
     }
     printf("%d\n",k);
    
}
main(){
	int a[100],b[100];
	int blength,i,alength,sum,zero,test;
	char s[100];
	scanf("%s",s);
	alength=strlen(s);
	blength=0;
	zero=0;
	test=0;
	for(i=1;i<=alength;i++){
		a[i-1]=s[i-1]-'0';
	}
	for(i=alength;i>=1;i--){
		if(a[i-1]==0){
			zero++;
		}
		else{
			break;
		}
	}
	
	for(i=1;i<=alength-1;i++){
		sum=a[i-1]*10+a[i];
		
		
		if(sum>=13){
			a[i]=sum%13;
			b[blength]=(sum-a[i])/13;
			blength++;//100?&#196;&#199;é&#191;&#246;
			if(i==(alength-1-zero)){
				test=1;
				break;
			} 
		}
		else{
			
			a[i]+=a[i-1]*10;
			if(alength<=2&&sum<13){
				blength=1;
				b[0]=0;
				break;
			}
			if(blength!=0){
				b[blength]=0;
				blength++;
			}
		}
	}
	if(alength==1){
		blength=1;
		b[0]=0;
	}
	for(i=1;i<=blength;i++){
		printf("%d",b[i-1]);
		
	}
	if(zero!=0&&test==1){
		for(i=1;i<=zero;i++){
			printf("0");
		}
	}
	printf("\n%d",a[alength-1]);
}
int main(){
   int n,a,b,c,d,e;
   int sz[6];
   scanf("%d",&n);
   sz[0]=n/100;
   a=n%100;
   sz[1]=a/50;
   b=a%50;
   sz[2]=b/20;
   c=b%20;
   sz[3]=c/10;
   d=c%10;
   sz[4]=d/5;
   e=d%5;
   sz[5]=e;
   printf("%d\n%d\n%d\n%d\n%d\n%d\n",sz[0],sz[1],sz[2],sz[3],sz[4],sz[5]);
	return 0;
}
int main()
{
	int a[6]={100,50,20,10,5,1},b[6]={0};
	int i,n;
	scanf("%d",&n);
	for(i=0;i<6;i++)
	{
		if(n>0)
		{
	    	b[i]=n/a[i];
	    	n=n-b[i]*a[i];
		}
		else
			break;
	}
	for(i=0;i<6;i++)
		printf("%d\n",b[i]);
	return 0;

}
int main()
{
	int n,a,b,c,d,e,f;
	cin>>n;
	cout<<n/100<<endl;n=n%100;
	cout<<n/50<<endl;n=n%50;
	cout<<n/20<<endl;n=n%20;
	cout<<n/10<<endl;n=n%10;
	cout<<n/5<<endl;n=n%5;
	cout<<n<<endl;
	return 0;
}
void main()
{
int i=0,j=0,pieces[10],result[10];
float value,flag[10],mianzhi[10]={100,50,20,10,5,1};
scanf("%f",&value);
while(value>=mianzhi[i],i<10)
{
pieces[i]=value/mianzhi[i];
value=value-pieces[i]*mianzhi[i];
i++;
}
for(i=0;i<10;i++)
{
if(pieces[i]>=0) 
{
result[j]=pieces[i];
flag[j]=mianzhi[i];
j++;
}
}
for(i=0;i<j;i++)
{
printf("%d\n",result[i]);
}
}
int v;
void fy(int s)
{
     cout<<v/s<<endl;
     v=v%s;
}
int main()
{
    int a,b,c=0,d[4]={0};
    double m,n=0,r;
    char s[100];
    cin>>v;
    fy(100);
    fy(50);
    fy(20);
    fy(10);
    fy(5);
    fy(1);
    return EXIT_SUCCESS;
}
int main(){
int m;
 scanf("%d",&m);
 int a,b,c,d,e,f;
 a=m/100;
 b=(m-100*a)/50;
 c=(m-100*a-50*b)/20;
 d=(m-a*100-50*b-20*c)/10;
 e=(m-a*100-50*b-20*c-10*d)/5;
 f=(m-a*100-50*b-20*c-10*d-e*5)/1;
 printf("%d\n",a);
 printf("%d\n",b);
 printf("%d\n",c);
 printf("%d\n",d);
 printf("%d\n",e);
 printf("%d\n",f);
	  return 0;
}
int main(){
    int m,i,j,k,l,a,b,c,d,e,f,n,fif,twe,ten;
        a=0;
        i=0;
        b=0;
        c=0;
        d=0;
        e=0;
        f=0;
        scanf("%d",&m);
        for(i=m;i>0;i-=100){
                if(i>=100){
                        a++;
                }
        }
        for(j=(m%100);j>0;j-=50){
                if(j>=50){
                        b++;
                }
        }
        fif=m%50;
        for(k=fif;k>0;k-=20){
                if(k>=20){
                        c++;
                }
        }
        twe=(((m%100)%50)%20);
        for(l=twe;l>0;l-=10){
                if(l>10){
                        d++;
                }
        }
        ten=m%10;
        for(n=ten;n>0;n-=5){
                if(n>=5){
                        e++;
                }
        }
        f=m%5;
        printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
        return 0;
}
int main()
{
	int a;
	int bai,wushi,ershi,shi,wu,yi;
	cin>>a;
	bai=a/100;
	a=a%100;
	wushi=a/50;
	a=a%50;
	ershi=a/20;
	a=a%20;
	shi=a/10;
	a=a%10;
	wu=a/5;
	a=a%5;
	yi=a;
	cout<<bai<<endl;
	cout<<wushi<<endl;
	cout<<ershi<<endl;
	cout<<shi<<endl;
	cout<<wu<<endl;
	cout<<yi<<endl;
	return 0;
}
int main()
{
    int a,b,c,d,e,f,g;
	    a=0;
		b=0;
		c=0;
		d=0;
		e=0;
		f=0;
		g=0;
	scanf("%d",&a);
	if(a>100)
	{
	
	    b=a/100;
		a=a-b*100;
	}
		if(a>=50)
		{
		    a=a-50;
			c=1;
		}
		if(a>=40)
			{
				d=2;
				a=a-40;
			}
		if((a>=20)&&(a<40))
		{
			d=1;
				a=a-20;
		}
        if(a>=10)
		{
			e=1;
				a=a-10;
		}
		if(a>=5)
		{
		    f=1;
			a=a-5;
		}
		g=a;
		
	
	printf("%d\n",b);
		printf("%d\n",c);
		printf("%d\n",d);
		printf("%d\n",e);
		printf("%d\n",f);
		printf("%d\n",g);
}
int main()
{
	int n;
	scanf("%d",&n);
	int a[6]={0};
	a[0]=(n-n%100)/100;
	a[1]=(n%100-(n%100)%50)/50;
	a[2]=(n-100*a[0]-50*a[1]-(n-100*a[0]-50*a[1])%20)/20;
	a[3]=(n-100*a[0]-50*a[1]-20*a[2]-n%10)/10;
	a[4]=(n%10-(n%10)%5)/5;
	a[5]=n%5;
	int i;
	for(i=0;i<6;i++)
	{
		printf("%d\n",a[i]);
	}
	return 0;
}
int main(){
    int x,a,b,c,d,e,f,g,h,i,j,k;
    scanf("%d",&x);
    a=x/100;
    b=x%100;
    c=b/50;
    d=b%50;
    e=d/20;
    f=d%20;
    g=f/10;
    h=f%10;
    i=h/5;
    j=h%5;
    k=j;
    printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,c,e,g,i,k);
    scanf("%d",&a);
    return 0;
}
int main()
{
	int m,a,b,c,d,e,i,j,k,l,n,q;
	scanf("%d",&m);
	a=m%100;
	i=(m-a)/100;
	b=(m-i*100)%50;
	j=(m-i*100-b)/50;
	c=(m-i*100-j*50)%20;
	k=(m-i*100-j*50-c)/20;
    d=(m-i*100-j*50-k*20)%10;
	l=(m-i*100-j*50-k*20-d)/10;
	e=(m-i*100-j*50-k*20-10*l)%5;
	n=(m-i*100-j*50-k*20-10*l-e)/5;
	q=m-i*100-j*50-k*20-10*l-5*n;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",i,j,k,l,n,q);
    return 0;
}
int main(){
	int n,a,b,c,d,e,f;
	scanf("%d",&n);
    a=(n-n%100)/100;
	b=(n%100-(n%100)%50)/50;
	c=((n-a*100-b*50)-(n-a*100-b*50)%20)/20;
	d=((n-a*100-b*50-c*20)-(n-a*100-b*50-c*20)%10)/10;
	e=((n-a*100-b*50-c*20-d*10)-(n-a*100-b*50-c*20-d*10)%5)/5;
	f=n-a*100-b*50-c*20-d*10-e*5;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
    return 0;
}
//??????????
//?????2011?1?
//???????
int main()
{
int a,b,c,d,e,f,g,sum; //????
cin>>sum;              //?????
a=sum/100;            //??100???
b=(sum-100*a)/50;        //??50???
if(b<0)
b=0;
c=(sum-a*100-b*50)/20; //??20???
if(c<0)
c=0;
d=(sum-a*100-b*50-c*20)/10; //??10???
if(d<0)
d=0;
e=(sum-a*100-b*50-c*20-d*10)/5;//??5???
if(e<0)
e=0;
f=sum-a*100-b*50-c*20-d*10-e*5;//??1???
if(f<0)
f=0;
cout<<a<<endl;//????
cout<<b<<endl;
cout<<c<<endl;
cout<<d<<endl;
cout<<e<<endl;
cout<<f<<endl;
return 0;
}
int main()
{
   int n,a,b,c,d,e,f,l,m;
   scanf("%d",&n);
   a=n/100;
   l=n/10%10;
   b=l/5;
   c=l%5/2;
   d=(l%5)%2;
   m=n%10;
   e=m/5;
   f=m%5;
   printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
   return 0;
}
int main(){
	int n,a,b,c,d,e,f;
	scanf("%d",&n);
	a=n/100;
	b=(n%100)/50;
	c=(n%50)/20;
         d=((n%50)%20)/10;
	e=(n%10)/5;
	f=(n%5)/1;
	printf("%d\n",a);
	printf("%d\n",b);
	printf("%d\n",c);
	printf("%d\n",d);
	printf("%d\n",e);
	printf("%d",f);
	return 0;
}
int main()
{
int n,a[6]={0,0,0,0,0,0},b[6]={100,50,20,10,5,1},i;
cin>>n;
for(i=0;i<=5;i++)
{
while(n>=0)
{
n=n-b[i];
a[i]++;
}
n=n+b[i];
a[i]=a[i]-1;
}
for(i=0;i<=5;i++)
{
cout<<a[i]<<endl;
}
return 0;
}
int main()
{
	int m,a=0,b=0,c=0,d=0,e=0,f=0;
	scanf("%d",&m);
	while(m>=100)
	{
		m=m-100;
		a++;
	}
	while(m>=50)
	{
		m=m-50;
		b=1;
	}
	while(m>=20)
	{
		m=m-20;
		c++;
	}
	while(m>=10)
	{
		m=m-10;
		d=1;
	}
	while(m>=5)
	{
		m=m-5;
		e=1;
	}
	while(m>=1)
	{
		m=m-1;
		f++;
	}
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
	return 0;
}
int main(int argc, char* argv[])
{
	int n, a[6]={0},i;
	scanf("%d", &n);
	a[0]=n/100;
	n=n%100;
	a[1]=n/50;
	n=n%50;
	a[2]=n/20;
	n=n%20;
	a[3]=n/10;
	n=n%10;
	a[4]=n/5;
	n=n%5;
	a[5]=n;
	for(i=0;i<6;i++){

	printf("%d\n", a[i]);
	}
	return 0;
}
int main()
{
	int money,change[6]={0},i,mon[6]={100,50,20,10,5,1},p;
	cin>>money;
	for(i=0;i<6;i++)
	{
		p=money;
		change[i]=money/mon[i];
		money=p-change[i]*mon[i];
	}
	for(i=0;i<6;i++)
	{
		cout<<change[i]<<endl;
	}
	return 0;
}
int main()
{
	int n;
	double a,b,c,d,e,f;
	scanf("%d",&n);
	a=1.0*n/100;
	int a1=(int)a;
	b=1.0*(n-100*a1)/50;
	int b1=(int)b;
	c=1.0*(n-100*a1-50*b1)/20;
	int c1=(int)c;
	d=1.0*(n-100*a1-50*b1-20*c1)/10;
	int d1=(int)d;
	e=1.0*(n-100*a1-50*b1-20*c1-10*d1)/5;
	int e1=(int)e;
    f=1.0*(n-100*a1-50*b1-20*c1-10*d1-5*e1)/1;
	int f1=(int)f;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a1,b1,c1,d1,e1,f1);
return 0;
}
int main()
{
   int money[10],sum[10];
   int k,i,j;
   scanf("%d",&k);
   money[1]=100;
   money[2]=50;
   money[3]=20;
   money[4]=10;
   money[5]=5;
   money[6]=1;
   for(i=1;i<=6;i++)
    sum[i]=0;
   for(i=1;i<=6;i++)
    {
      while(k>=money[i])
       {
         k=k-money[i];
         sum[i]++;
        }
       printf("%d\n",sum[i]);
     }   
    return 0;
}
int main()
{
	int n;
	int a,b,c,d,e,f;
	int a1=0,b1=0,c1=0,d1=0,e1=0,f1=0;
	scanf("%d",&n);
	a=n/100;
	a1=n%100;
	b=a1/50;
	b1=a1%50;
	c=b1/20;
	c1=b1%20;
	d=c1/10;
	d1=c1%10;
	e=d1/5;
	e1=d1%5;
	f=e1;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
	return 0;
	}
int main()
{
    int n,a[7],i=0;
    memset(a,0,sizeof(a));
    cin>>n;
    if (n / 100>=1) { a[1]=a[1]+n/100; n=n-a[1]*100;}
    if (n / 50>=1) { a[2]=a[2]+n/50; n=n-a[2]*50;}
    if (n / 20>=1) { a[3]=a[3]+n/20; n=n-a[3]*20;}
    if (n / 10>=1) { a[4]=a[4]+n/10; n=n-a[4]*10;}
    if (n / 5>=1) { a[5]=a[5]+n/5; n=n-a[5]*5;}
    if (n / 1>=1) { a[6]=a[6]+n/1; n=n-a[6]*1;}
    
    for (i=1;i<=6;i++)
     cout<<a[i]<<endl;
     
          return 0;
}
int main(int argc, char* argv[])
{
    int m,a,b,c,d,e,f;
	scanf("%d", &m);
	a=m/100;
	b=(m%100)/50;
	c=m%100%50/20;
	d=m%100%50%20/10;
	e=m%100%50%20%10/5;
	f=m%100%50%20%10%5/1;
    printf("%d\n", a);
    printf("%d\n", b);
    printf("%d\n", c);
    printf("%d\n", d);
    printf("%d\n", e);
    printf("%d\n", f);
	return 0;
}
int main(){
	int n,i;
	int a=0,b=0,c=0,d=0,e=0,f=0;
	scanf("%d",&n);
	a=n/100;
	n=n%100;
	b=n/50;
	n=n%50;
	c=n/20;
	n=n%20;
	d=n/10;
	n=n%10;
    e=n/5;
	f=n%5;
	

	printf("%d\n",a);
	printf("%d\n",b);
 	printf("%d\n",c);
	printf("%d\n",d);
	printf("%d\n",e);
 	printf("%d\n",f);



return 0;


}
int main()
{
    int n,a,b,c,d,e,f;
    scanf("%d",&n);
    if(n/100>=1){
                 a=n/100;
                 n=n-100*a;
                 }
    else a=0;
    if(n/50>=1){
                b=n/50;
                n=n-50*b;
                }
    else b=0;
    if(n/20>=1){
                c=n/20;
                n=n-20*c;
                }
    else c=0;
    if(n/10>=1){
                d=n/10;
                n=n-10*d;
                }
    else d=0;
    if(n/5>=1){
                e=n/5;
                n=n-5*e;
                }
    else e=0;
    f=n;
    printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
    scanf("%d",&n);
    return 0;
}
int main(){
int money[6]={100,50,20,10,5,1};
int n,y;
scanf("%d",&n);
y=n;
int h[6]={0,0,0,0,0,0};
for(int i=0;i<6;i++){
if(y>=money[i]){
h[i]=y/money[i];
y=y%money[i];
}
  }
for(int i=0;i<6;i++){
printf("%d\n",h[i]);
}
return 0;
}
int main()
{
    int n,hun,fif,twe,ten,fiv,one;
    scanf("%d",&n);
    hun=n/100;
    fif=(n-hun*100)/50;
    twe=(n-hun*100-fif*50)/20;
    ten=(n-hun*100-fif*50-twe*20)/10;
    fiv=(n-hun*100-fif*50-twe*20-ten*10)/5;
    one=(n-hun*100-fif*50-twe*20-ten*10-fiv*5)/1;
    int sz[6]={hun,fif,twe,ten,fiv,one};
    int i;
    for(i=0;i<6;i++)
    {
        printf("%d\n",sz[i]);
    }
    return 0;
}
//*************************************************************
//???????? 
//*************************************************************
int main()
{
	int a,n[7];
	cin>>a;
	n[1]=a/100;
	a=a%100;
	n[2]=a/50;
	a=a%50;
	n[3]=a/20;
	a=a%20;
	n[4]=a/10;
	a=a%10;
	n[5]=a/5;
	n[6]=a%5;
	int i;
	for(i=1;i<=6;i++)
		cout<<n[i]<<endl;
	return 0;
}
int main(){                                       
int n,a,s,d,f,g,h;
cin>>n;
a=n/100;
s=(n-100*a)/50;
d=(n-100*a-50*s)/20;
f=(n-100*a-50*s-20*d)/10;
g=n%10/5;
h=n%5;
cout<<a<<endl<<s<<endl<<d<<endl<<f<<endl<<g<<endl<<h<<endl;                                                        
                                                                                          
return 0;
}
/*
 * 01.cpp
 *
 *  Created on: 2011-11-6
 *      Author: 1100012797
 */
int main()
{
	int n,a100,k,a50,a20,a10,a5,a1;
	cin>>n;
	a100=(n-n%100)/100; 
	k=n-a100*100;
	a50=(k-k%50)/50;
	k=k-a50*50;
	a20=(k-k%20)/20;
	k=k-a20*20;
	a10=(k-k%10)/10;
	k=k-a10*10;
	a5=(k-k%5)/5;
	k=k-a5*5;
	a1=k;
	cout<<a100<<endl<<a50<<endl<<a20<<endl<<a10<<endl<<a5<<endl<<a1;
	return 0;
}
int main(){
	int n,a,b,c,d,e,f,s;
	scanf("%d",&n);
	s=n;
	a=s/100;
	s=s%100;
	b=s/50;
	s=s%50;
	c=s/20;
	s=s%20;
	d=s/10;
	s=s%10;
	e=s/5;
	s=s%5;
	f=s/1;
	printf("%d\n%d\n%d\n%d\n%d\n%d",a,b,c,d,e,f);
	return 0;
}
int main()
{
	int a,b,c,d,e,f,g,h,m;
	scanf("%d",&m);
	a=m%5;
	b=((m-a)%10)/5;
	f=(m-(m%100))/100;
	g=m-100*f;
	if(g>=50)
		e=1;
	else
		e=0;
	h=g-50*e-5*b-a;
	d=(h-(h%20))/20;
	c=(h-20*d)/10;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",f,e,d,c,b,a);
	return 0;
}
int main()
{ int a[10],n,m,i,j,k;
  cin >>n;
  a[1]=n/100;
  n=n%100;
  a[2]=n/50;
  n=n%50;
  a[3]=n/20;
  n=n%20;
  a[4]=n/10;
  n=n%10;
  a[5]=n/5;
  n=n%5; 
  a[6]=n;
  for (i=1;i<=6;i++)
       cout <<a[i]<<endl; 

  return 0;
    
    
    }
int main()
{
    int x , i , a[7] = {0 , 100 , 50 , 20 , 10 , 5 , 1} ; 
    cin >> x ; 
    for (i = 1 ; i <= 6 ; i ++ ) 
    {
        cout << (x / a[i]) << endl ; 
        x %= a[i] ; 
        }
    return 0 ; 
}
int main()
{
	int sum,number[6]={0},i,j=0;
	cin>>sum;
	for (;sum>=100;number[j]++)		sum=sum-100;
	j++;
	for (;sum>=50;number[j]++) sum=sum-50;
	j++;
	for (;sum>=20;number[j]++)sum=sum-20;
	j++;
	for (;sum>=10;number[j]++)sum=sum-10;
	j++;
	for (;sum>=5;number[j]++)sum=sum-5;
	j++;
	for (;sum>=1;number[j]++)sum=sum-1;
	for(j=0;j<6;j++) cout<<number[j]<<endl;
	return 0;
}
int main()
{
	int a;
	scanf("%d", &a);
	printf("%d\n",a/100);
	a%=100;
	printf("%d\n",a/50);
	a%=50;
	printf("%d\n",a/20);
	a%=20;
	printf("%d\n",a/10);
	a%=10;
	printf("%d\n",a/5);
	a%=5;
	printf("%d\n",a);
	return 0;
}
int main(){
	int sum,s100,s50,s20,s10,s5,s1;
	scanf("%d",&sum);
	s100=0;
	s50=0;
	s20=0;
	s10=0;
	s5=0;
	s1=0;
	if(sum>=100){
		s100=sum/100;
		sum=sum%100;
	}
	if(sum>=50){
		s50++;
		sum=sum-50;
	}
	while(sum>=20){
		s20++;
		sum=sum-20;
	}
	if(sum>=10){
		s10++;
		sum=sum-10;
	}
	if(sum>=5){
		s5++;
		sum=sum-5;
	}
	s1=sum;
	printf("%d\n",s100);
	printf("%d\n",s50);
	printf("%d\n",s20);
	printf("%d\n",s10);
	printf("%d\n",s5);
	printf("%d\n",s1);
	return 0;
}
int main()
{
	int n,h,l;
	cin>>n;
	h=n/100;
	l=n%100;
	cout<<h<<endl;
	h=l/50;
	l=l%50;
	cout<<h<<endl;
    h=l/20;
	l=l%20;
	cout<<h<<endl;
	h=l/10;
	l=l%10;
	cout<<h<<endl;
	h=l/5;
	l=l%5;
	cout<<h<<endl;
	h=l/1;
	l=l%1;
	cout<<h<<endl;
    return 0;
}
int main ()
{
    int n;
    scanf("%d",&n);
    printf("%d\n",n/100);
    n=n%100;
    printf("%d\n",n/50);
    n=n%50;
    printf("%d\n",n/20);
    n=n%20;
    printf("%d\n",n/10);
    n=n%10;
    printf("%d\n",n/5);
    n=n%5;
    printf("%d\n",n/1);
    n=n%1;
    return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	printf("%d\n",n/100);
	printf("%d\n",(n-n/100*100)/50);
	printf("%d\n",(n-n/100*100-(n-n/100*100)/50*50)/20);
	printf("%d\n",(n-n/100*100-(n-n/100*100)/50*50-(n-n/100*100-(n-n/100*100)/50*50)/20*20)/10);
	printf("%d\n",(n-n/100*100-(n-n/100*100)/50*50-(n-n/100*100-(n-n/100*100)/50*50)/20*20-(n-n/100*100-(n-n/100*100)/50*50-(n-n/100*100-(n-n/100*100)/50*50)/20*20)/10*10)/5);
	printf("%d\n",n%5);
	return 0;
}
int main()
{
	int a,sum100,sum10,sum1,n100,n50,n20,n10,n5,n1;
	scanf("%d",&a);
	if(a>=100)
	{
		sum1=a%10;
		sum10=a/10%10;
		sum100=a/100;
		n100=sum100;
		if(sum10<=1) 
		{
			n10=sum10;
			n20=0;
			n50=0;
		}
		else if(sum10>=2 && sum10<5)
		{
			n20=sum10/2;
			n10=sum10-2*n20;
			n50=0;
		}
		else
		{
			n50=1;
			n20=(sum10-5)/2;
			n10=sum10-5-2*n20;
		}
		if(sum1<5)
		{
			n1=sum1;
			n5=0;
		}
		else
		{
			n5=1;
			n1=sum1-5;
		}
	}
	if(a>=10&&a<100)
	{
		sum10=a/10;
		sum1=a%10;
		n100=0;
		if(sum10<=1) 
		{
			n10=sum10;
			n20=0;
			n50=0;
		}
		else if(sum10>=2 && sum10<5)
		{
			n20=sum10/2;
			n10=sum10-2*n20;
			n50=0;
		}
		else
		{
			n50=1;
			n20=(sum10-5)/2;
			n10=sum10-5-2*n20;
		}
		if(sum1<5)
		{
			n1=sum1;
			n5=0;
		}
		else
		{
			n5=1;
			n1=sum1-5;
		}
	}
	if(a>=0&&a<10)
	{
		sum1=a;
		n100=0;
		n50=0;
		n20=0;
		n10=0;
		if(sum1<5)
		{
			n1=sum1;
			n5=0;
		}
		else
		{
			n5=1;
			n1=sum1-5;
		}
	}
    printf("%d\n%d\n%d\n%d\n%d\n%d\n",n100,n50,n20,n10,n5,n1);
	return 0;
}
int main(){
	int i,qian;
	int yu[6]={0};
	int zhang[6]={0};
	scanf("%d",&qian);
	zhang[0]=qian/100;
	yu[0]=qian-zhang[0]*100;
	zhang[1]=yu[0]/50;
	yu[1]=yu[0]-zhang[1]*50;
	zhang[2]=yu[1]/20;
	yu[2]=yu[1]-zhang[2]*20;
	zhang[3]=yu[2]/10;
	yu[3]=yu[2]%10;
	zhang[4]=yu[3]/5;
	yu[4]=yu[3]%5;
	zhang[5]=yu[4];
	for(i=0;i<6;i++){
		printf("%d\n",zhang[i]);
	}
	return 0;
}
int main()
{
	int sum,i,n[6],rest[7],
		price[6]={100,50,20,10,5,1};
	cin>>sum;
	rest[0]=sum;
	for(i=0;i<6;i++)
	{
		n[i]=rest[i]/price[i];
		rest[i+1]=rest[i]%price[i];
		cout<<n[i]<<endl;
	}
    return 0;
}
int main()
{
   int n,m=0;                       //????n?????m
   cin>>n;
   for (n;n>=100;n=n-100)           //?????????????100
   {
        m=m+1;                      //100?????
   } 
   cout<<m<<endl;                   //??100???????
   m=0;                             //???m??????????
   for (n;n>=50;n=n-50)
   {
        m=m+1;
   } 
   cout<<m<<endl;
   m=0;
      for (n;n>=20;n=n-20)
   {
        m=m+1;
   } 
   cout<<m<<endl;
   m=0;
   for (n;n>=10;n=n-10)
   {
        m=m+1;
   } 
   cout<<m<<endl;
   m=0;
   for (n;n>=5;n=n-5)
   {
        m=m+1;
   } 
   cout<<m<<endl;
   m=0;
   for (n;n>=1;n=n-1)
   {
        m=m+1;
   } 
   cout<<m<<endl;
   return 0;
}
int main(int argc, char* argv[])
{
   int n,m,i,j;
   int a[6],b[6];
   a[0]=100;
   a[1]=50;
   a[2]=20;
   a[3]=10;
   a[4]=5;
   a[5]=1;
   scanf("%d",&n);
   for(i=0;i<6;i++)
   { 
	 m=n;
     b[i]=n/a[i];
	 n=n%a[i];
  };
  for(i=0;i<6;i++)
	  printf("%d\n",b[i]);
  
	return 0;
}
int main(){
	int n;
	scanf("%d",&n);
	int a=0,b=0,c=0,d=0,e=0,f=0;
	while(1){
		if(n-100*a>=100){
			a++;
		}else if(n-100*a-50*b>=50){
			b++;
		}else if(n-100*a-50*b-20*c>=20){
			c++;
		}else if(n-100*a-50*b-20*c-10*d>=10){
			d++;
		}else if(n-100*a-50*b-20*c-10*d-5*e>=5){
			e++;
		}else
		break;
			f=n-100*a-50*b-20*c-10*d-5*e;
	}
			printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
			return 0;
	}