semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int count(int facevalue,int sum,int n);
	int n,sum=0;
	cin>>n;
	int facevalue[6]={100,50,20,10,5,1},num[6];
	for(int i=0;i<6;i++)
	{
		num[i]=count(facevalue[i],sum,n);
		cout<<num[i]<<endl;
		sum+=num[i]*facevalue[i];
	}
	return 0;
}

/*-----?????????-----*/
int count(int facevalue,int sum,int n)
{
	for(int i=0;;)
	{
		if((i+1)*facevalue+sum<=n)
			i++;
		else
			return i;
	}
}
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;
 
 
 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;
	scanf("%d", &n);
	int sz[6]={0}, t[5];
	sz[0]=n/100;
	t[0]=n-100*sz[0];
	sz[1]=t[0]/50;
	t[1]=t[0]-50*sz[1];
	sz[2]=t[1]/20;
	t[2]=t[1]-20*sz[2];
	sz[3]=t[2]/10;
	t[3]=t[2]-10*sz[3];
	sz[4]=t[3]/5;
	t[4]=t[3]-5*sz[4];
	sz[5]=t[4];
	for(int i=0; i<6; i++){
		printf("%d\n", sz[i]);
	}
	return 0;
}
int main()
{
	int n,a=-1,b=-1,c=-1,d=-1,e=-1,f=-1,m;
	scanf("%d",&n);
	m=n;
	while(n>=0){
		n=n-100;
		a=a+1;
	}
	printf("%d\n",a);
	n=m-100*a;
	while(n>=0){
		n=n-50;
		b=b+1;
	}
	printf("%d\n",b);
	n=m-50*b-100*a;
	while(n>=0){
		n=n-20;
		c=c+1;
	}
	printf("%d\n",c);
	n=m-100*a-50*b-20*c;
	while(n>=0){
		n=n-10;
		d=d+1;
	}
	printf("%d\n",d);
	n=m-100*a-50*b-20*c-10*d;
	while(n>=0){
		n=n-5;
		e=e+1;
	}
	printf("%d\n",e);
	n=m-100*a-50*b-20*c-10*d-5*e;
	while(n>=0){
		n=n-1;
		f=f+1;
	}
	printf("%d\n",f);
	return 0;
}
int main()
{
	int n;
	cin>>n;
	int i;
	for (i=0;(n-100*i)>=0;i++)
	{
	}
	i=i-1;
	cout<<i<<endl;
	n=n-100*i;
    for (i=0;(n-50*i)>=0;i++)
	{
	}
	i=i-1;
	cout<<i<<endl;
	n=n-50*i;
   for (i=0;(n-20*i)>=0;i++)
	{
	}
	i=i-1;
	cout<<i<<endl;
	n=n-20*i;
   for (i=0;(n-10*i)>=0;i++)
	{
	}
	i=i-1;
	cout<<i<<endl;
	n=n-10*i;
	for (i=0;(n-5*i)>=0;i++)
	{
	}
	i=i-1;
	cout<<i<<endl;
	n=n-5*i;
	cout<<n;

    return 0;
}
int main()
{
	const int rmb[6]={100,50,20,10,5,1};
	int n,i,ans[6];
	for (i=0;i<6;i++) ans[i]=0;
	cin>>n;
	for (i=0;i<6;i++)
	{
		while (n>=rmb[i])
		{
			ans[i]++;
			n=n-rmb[i];
		}
		cout<<ans[i]<<endl;
	}
	return 0;
}
int main(){
	int n;
	int a=0,b=0,c=0,d=0,e=0,f=0;
	scanf("%d",&n);
	if(n>=100){
        a=(n-n%100)/100;
	    n=n%100;
	}
	if(n>=50){
		b=(n-n%50)/50;
		n=n%50;
	}
	if(n>=20){
		c=(n-n%20)/20;
		n=n%20;
	}
	if(n>=10){
		d=(n-n%10)/10;
		n=n%10;
	}
	if(n>=5){
		e=(n-n%5)/5;
		n=n%5;
	}
	f=n;
	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=0,b=0,c=0,d=0,e=0,f=0;
	 scanf("%d",&n);
    if (n/100>0)
		a=n/100;
	if ((n/50-a*2)>0)
        b=n/50-a*2;
	if (((n-b*50)/20-a*5)>0)
		c=(n-b*50)/20-a*5;
	if ((n/10-a*10-b*5-c*2)>0)
		d=n/10-a*10-b*5-c*2;
	if ((n/5-20*a-10*b-c*4-d*2)>0)
		e=n/5-20*a-10*b-c*4-d*2;
	if ((n-100*a-50*b-20*c-10*d-5*e)>0)
        f=n-100*a-50*b-20*c-10*d-5*e;
	 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 sum;
	int a1,b1,c1,d1,e1,f1;
	int numa,numb,numc,numd,nume,numf;
	scanf("%d",&sum);
	a1=sum%100;
	numa=(sum-a1)/100;
	b1=(sum-100*numa)%50;
	numb=(sum-100*numa-b1)/50;
	c1=(sum-100*numa-50*numb)%20;
	numc=(sum-100*numa-50*numb-c1)/20;
	d1=(sum-100*numa-50*numb-20*numc)%10;
	numd=(sum-100*numa-50*numb-20*numc-d1)/10;
	e1=(sum-100*numa-50*numb-20*numc-10*numd)%5;
	nume=(sum-100*numa-50*numb-20*numc-10*numd-e1)/5;
	f1=(sum-100*numa-50*numb-20*numc-10*numd-5*nume)%1;
	numf=(sum-100*numa-50*numb-20*numc-10*numd-5*nume-f1);
	printf("%d\n%d\n%d\n%d\n%d\n%d",numa,numb,numc,numd,nume,numf);
	return 0;
}
int main()
{
int n,a,b,c,d,e,f;
scanf("%d",&n);
a=n/100;
b=(n-n/100*100)/50;
c=(n-(a*100+b*50))/20;
d=(n-(a*100+b*50+c*20))/10;
e=(n-n/10*10)/5;
f=(n-n/5*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 a,b,c,d,e,f,sum;
	scanf("%d",&sum);
    if(sum<1000)
	{
		a=sum/100;
		sum=sum-100*a;
		b=sum/50;
		sum=sum-50*b;
		c=sum/20;
		sum=sum-20*c;
		d=sum/10;
		sum=sum-10*d;
		e=sum/5;
		sum=sum-5*e;
		f=sum;
	}
	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=0;
  int b=0;
  int i=0;
  int t=0,z=0,number=0;
  int money[6] = {100,50,20,10,5,1};

  scanf("%d",&a);
  b=a;

  while(i<=4)
  {
	t=b%money[i];
    number=(b-t)/money[i];
	b=t-z*money[i];
	printf("%d\n",number);
	i++;
  }
  printf("%d",b);
  return 0;
}
int main()
{
    int a;
	int b,c,d,e,f,g;
	scanf("%d",&a);
	b=(a-a%100)/100;
	c=((a-b*100)-(a-b*100)%50)/50;
	d=((a-b*100-c*50)-(a-b*100-c*50)%20)/20;
	e=((a-b*100-c*50-d*20)-(a-b*100-c*50-d*20)%10)/10;
	f=((a-b*100-c*50-d*20-e*10)-(a-b*100-c*50-d*20-e*10)%5)/5;
	g=((a-b*100-c*50-d*20-e*10-f*5)-(a-b*100-c*50-d*20-e*10-f*5)%1)/1;
	printf("%d\n%d\n%d\n%d\n%d\n%d",b,c,d,e,f,g);
	return 0;
}
int main()
{
    int n,a,b,c,d,e,f;
	a=b=c=d=e=f=0;
	scanf ("%d",&n);

	a=n/100;
	b=(n-100*a)/50;
	c=(n-100*a-50*b)/20;
	d=(n-100*a-50*b-20*c)/10;
	e=(n-100*a-50*b-20*c-10*d)/5;
	f=(n-100*a-50*b-20*c-10*d-e*5);
	printf("%d\n%d\n%d\n%d\n%d\n%d",a,b,c,d,e,f);
	return 0;
}
int main(){
int n,a,b,c,d,e,f,x,y,z,i,q;
scanf("%d",&n);
a=n/100;
x=n%100;
b=x/50;
y=n%50;
c=y/20;
z=n-100*a-50*b-20*c;
d=z/10;
i=n%10;
e=i/5;
q=n%5;
f=q;
printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
return 0;
}
//
//  main.cpp
//  hw
//
//  Created by ? ? on 12-12-16.
//  Copyright (c) 2012? ? ?. All rights reserved.
//


int main(int argc, const char * argv[])
{
    int num;
    cin>>num;
    int money[6]={100,50,20,10,5,1};
    for (int i=0; i<6; i++) {
        cout<<num/money[i]<<endl;
        num-=(num/money[i])*money[i];
    }
    return 0;
}
int main()
{
	int n,i;
	cin>>n;
	int zz[6]={100,50,20,10,5,1};
	int z[6];
	for ( i= 0 ; i < 6 ;i ++ )
	{
		z[i]=n / zz[i];
		n -= z[i]*zz[i];
	}
	for ( i = 0 ; i < 6; i ++ )
		cout<<z[i]<<endl;
}
//**********************************
//****       ??????     *****
//****        1200016612       *****
//**      ????????      ***
//**********************************
int main()                                             //?????
{
	int n=0,a[6],i=0,p=0;                              //??a[6]??????????p???????????? 
	cin>>n;
	a[0]=100;                   
	a[1]=50;
	a[2]=20;
	a[3]=10;
	a[4]=5;
	a[5]=1;
	for(i=0;i<6;i++)                                   //???????????????
	{
		p=n/a[i];
		cout<<p<<endl;
		n=n-p*a[i];                                    //?????????????n???????????
	}
 return 0;
}
int main(){
	int n,s1,s2,s3,s4,s5,s6;
	scanf("%d",&n);
	s1=n/100;
	s2=(n%100)/50;
	s3=(n%50)/20;
	s4=((n%50)%20)/10;
	s5=(n%10)/5;
	s6=n%5;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",s1,s2,s3,s4,s5,s6);
	return 0;
}
int main()
{
	int a,b,c,d,e,f,g;
	scanf("%d",&a);
	b=(a-a%100)/100;
	a=a-100*b;
	
	c=(a-a%50)/50;
	a=a-50*c;
	
	d=(a-a%20)/20;
	a=a-20*d;
	
	e=(a-a%10)/10;
	a=a-10*e;

	f=(a-a%5)/5;
	a=a-5*f;

	g=a;

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

	return 0;
}
int main()
{
	int n,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0;
	scanf("%d",&n);
	for(;;)
	{
		if(n-100>=0)
		{
			a1+=1;
			n-=100;
		}
		else break;
	}
	for(;;)
	{
		if(n-50>=0)
		{
			a2+=1;
			n-=50;
		}
		else break;
	}
	for(;;)
	{
		if(n-20>=0)
		{
			a3+=1;
			n-=20;
		}
		else break;
	}
	for(;;)
	{
		if(n-10>=0)
		{
			a4+=1;
			n-=10;
		}
		else break;
	}
	for(;;)
	{
		if(n-5>=0)
		{
			a5+=1;
			n-=5;
		}
		else break;
	}
	for(;;)
	{
		if(n-1>=0)
		{
			a6+=1;
			n-=1;
		}
		else break;
	}
	printf("%d\n",a1);
	printf("%d\n",a2);
	printf("%d\n",a3);
	printf("%d\n",a4);
	printf("%d\n",a5);
	printf("%d\n",a6);
	return 0;
}
int main()
{
int n,a,b,c,d,e,f;
int i1,i2,i3,i4,i5;
scanf("%d",&n);
i1=n%100;
a=(n-i1)/100;

n=n-100*a;
i2=n%50;
b=(n-i2)/50;

n=n-50*b;
i3=n%20;
c=(n-i3)/20;

n=n-20*c;
i4=n%10;
d=(n-i4)/10;

n=n-10*d;
i5=n%5;
e=(n-i5)/5;

n=n-5*e;
f=n;
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,p=0,q=0,r=0;
	scanf("%d",&n);
	p=n/100;
	printf("%d\n",p);
	p=n%100;
	p=p/50;
	printf("%d\n",p);
	p=n%100%50;
	p=p/20;
	printf("%d\n",p);
	p=n%100%50%20;
	p=p/10;
	printf("%d\n",p);
	p=n%100%50%20%10;
	p=p/5;
	printf("%d\n",p);
	p=n%100%50%20%10%5;
	printf("%d",p);
	return 0;
}
int main()
{
int n;
scanf("%d",&n);
printf("%d",n/100);
if((n%100)/10==9){
	printf("\n1\n2\n0");
}
	else if((n%100)/10==8){
		printf("\n1\n1\n1");
	}
		else if((n%100)/10==7){
        printf("\n1\n1\n0");
		}
        else if((n%100)/10==6){
       printf("\n1\n0\n1");
		}
		else if((n%100)/10==5){
printf("\n1\n0\n0");
		}
		else if((n%100)/10==4){
printf("\n0\n2\n0");
		}
		else if((n%100)/10==3){
printf("\n0\n1\n1");
		}
		else if((n%100)/10==2){
printf("\n0\n1\n0");
		}
else if((n%100)/10==1){
printf("\n0\n0\n1");
}
else{
printf("\n0\n0\n0");
}
if((n%10)>=5){
	printf("\n1\n%d",(n%10)-5);
}
	else{
		printf("\n0\n%d",(n%10));
	}
	return 0;
}
int main()
{
	int n,a,b,c,d,e,f,x;
	scanf("%d",&n);
	a=n/100;
	x=n%100;
	b=x/50;
	x=x-b*50;
	c=x/20;
	x=x-20*c;
	d=x/10;
	x=x-10*d;
	e=x/5;
	x=x-5*e;
	f=x;
	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;
    
}
/*
 * k2.cpp
 *
 *  Created on: 2011-11-6
 *      Author: b
 */
int main()
{
	int n;//??????n
	cin>>n;//??n
	int A,B,C,D,E,F,a,b,c,d;//???????????????
		A=n/100;//????
		a=n%100;
		B=a/50;
		b=a%50;
		C=b/20;
		c=b%20;
		D=c/10;
		d=c%10;
		E=d/5;
		F=d%5;
	cout<<A<<endl;//??
	cout<<B<<endl;
	cout<<C<<endl;
	cout<<D<<endl;
	cout<<E<<endl;
	cout<<F<<endl;
	return 0;//???????????????0?
}
int main ()
{
    int n,a,b,c,d,e,f,x;
	scanf("%d",&n);
	a=n/100;
	x=n%100;
	b=x/50;
	x=x%50;
	c=x/20;
    x=x%20;
	d=x/10;
	x=x%10;
	e=x/5;
	f=x%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 money,c,i,a[6],b[6]={100,50,20,10,5,1};
scanf("%d",&money);
for(i=0;i<6;i++)
{ c=money%b[i];
  a[i]=(money-c)/b[i];
  money=money%b[i];
  printf("%d\n",a[i]);}
}
int main(){
	int x,a[6]={100,50,20,10,5,1},b[6];//???????b[i]?????? 
	cin>>x;
	for(int i=0;i<6;i++){
		b[i]=(x-x%a[i])/a[i];
		x=x-a[i]*b[i];
		cout<<b[i]<<endl;//??b[i]??? 
		}
		
		return 0;
	}
void f1(int a);
void main()
{
	int RMB;
	scanf("%d",&RMB);
	f1(RMB);
}
void f1(int a)
{
	int b;
	if(a>=100)
	{
		b=a/100;
		printf("%d\n",b);
		a=a-b*100;
	}
	else 
	{
		printf("0\n");
	}
	if(a>=50)
	{
		printf("1\n");
		a=a-50;
	}
	else 
	{
		printf("0\n");
	}
	if(a>=20)
	{
		b=a/20;
		printf("%d\n",b);
		a=a-b*20;
	}
	else printf("0\n");
	if(a>=10)
	{
		printf("1\n");
		a=a-10;
	}
	else printf("0\n");
	if(a>=5)
	{
		printf("1\n");
		a=a-5;
	}
	else printf("0\n");
	printf("%d",a);
}
int main(){
int sz[10],sz1[6]={100,50,20,10,5,1};
int a,i;
scanf("%d",&a);
for(i=0;i<6;i++){
printf("%d\n",a/sz1[i]);
a=a%sz1[i];
}
return 0;
}
int main()
{
	int n, i, s;
	scanf("%d", &n);
	int a[6];
	a[0]=100;
	a[1]=50;
	a[2]=20;
	a[3]=10;
	a[4]=5;
	a[5]=1;
	i=0;
	int b[6];
	s=n;
	for(i=0; i<=5; i++)
	{
		b[i]=(s-s%a[i])/a[i];
		s=s-b[i]*a[i];
		printf("%d\n", b[i]);
	}
	return 0;
}
int money[6]={100,50,20,10,5,1};   //???? 
int need,ans[6];                   //????? 
int main()
{
    int i=0;
    cin>>need;                     //???? 
    while(need>0)
    {
        while(need>=money[i])
        {
            ans[i]++;
            need-=money[i];
        }
        i++;
    }                              //?????????? 
    for(i=0;i<6;++i) cout<<ans[i]<<endl;
    return 0;                      //????????? 
}
int main()
{   
	int a,b,c,d,e,f,m;
	scanf("%d",&m);
	a=m/100,m=m-100*a;
	b=m/50,m=m-50*b;
	c=m/20,m=m-20*c;
	d=m/10,m=m-10*d;
	e=m/5,m=m-5*e;
	f=m;
	printf("%d\n%d\n%d\n%d\n%d\n%d",a,b,c,d,e,f);
	return 0;


}
int main()
{
	int n,a,b,c,d,e,f;
	scanf("%d",&n);
	a=0;
	b=0;
	c=0;
	d=0;
	e=0;
	f=0;
	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;
	n=n%5;
         f=n;
	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;
	cin >> n;
	int a,b,c,d,e;
    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;
	n=n%5;
    cout << a <<endl;
	cout << b <<endl;
	cout << c <<endl;
	cout << d <<endl;
	cout << e <<endl;
	cout << n <<endl;
	return 0;
}
int main()
{int n,bai ,wushi,ershi,shi,wu,yi;
	cin>>n;
	bai=n/100;
	wushi=(n-100*bai)/50;
	ershi=(n-100*bai-50*wushi)/20;
	shi=(n-100*bai-50*wushi-20*ershi)/10;
    wu=(n-100*bai-50*wushi-20*ershi-10*shi)/5;
	yi=n%5;
	cout<<bai<<endl;
	cout<<wushi<<endl;
	cout<<ershi<<endl;
	cout<<shi<<endl;
	cout<<wu<<endl;
	cout<<yi<<endl;
	return 0;
}
/*
 * 2.cpp
 *
 *  Created on: 2011-11-6
 *      Author: b
 */
int main(){
	int n,r,m;
	cin>>n;
	r=n%100;
	m=(n-r)/100;
	cout<<m<<endl;
	n=r;
	r=n%50;
	m=(n-r)/50;
	cout<<m<<endl;
	n=r;
	r=n%20;
	m=(n-r)/20;
	cout<<m<<endl;
	n=r;
	r=n%10;
	m=(n-r)/10;
	cout<<m<<endl;
	n=r;
	r=n%5;
	m=(n-r)/5;
	cout<<m<<endl;
	n=r;
	r=n%1;
	m=(n-r)/1;
	cout<<m<<endl;
	return 0;
}
int main(){
	int n,a,b,c,d,e,f;
	scanf("%d", &n);
	a=n/100;
	b=n%100/50;
	c=n%100%50/20;
	d=n%100%50%20/10;
	e=n%100%50%20%10/5;
	f=n%5/1;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
	return 0;
}
int main()
{
	int money,sum=0;
	int num[6]={0,0,0,0,0,0};
	cin>>money;
	while(sum+100<=money)
	{sum+=100;num[0]++;}
	while(sum+50<=money)
	{sum+=50;num[1]++;}
	while(sum+20<=money)
	{sum+=20;num[2]++;}
	while(sum+10<=money)
	{sum+=10;num[3]++;}
	while(sum+5<=money)
	{sum+=5;num[4]++;}
	while(sum+1<=money)
	{sum+=1;num[5]++;}
	for(int i=0;i<6;i++)
		cout<<num[i]<<endl;
	return 0;
}
int main(){
	int x,a,b,q,w,r,t,y,c,d,e,f,g,h;
	scanf("%d",&x);
	c=x%100;
	d=c%50;
	e=d%20;
	f=e%10;
	g=f%5;
	h=g%2;
	a=(x-c)/100;
	b=(c-d)/50;
    q=(d-e)/20;
	w=(e-f)/10;
	r=(f-g)/5;
	 printf("%d\n\n",a);		 	 
	 printf("%d\n\n",b);
	 printf("%d\n\n",q);
	 printf("%d\n\n",w);	 
	 printf("%d\n\n",r);
	 printf("%d\n\n",g);
	 
	 return 0;
}
void main()
{
int n;
scanf("%d",&n);
int a,b,c,d;
a=0;
b=0;
c=0;
d=0;
int e=0;
int f=0;

while(n>=100)
{
	n=n-100;
	a++;
}
while(n>=50)
{
	n=n-50;
	b++;
}
while(n>=20)
{
n=n-20;
c++;
}
while(n>=10)
{
	n=n-10;
	d++;
}
while(n>=5)
{
	n=n-5;
	e++;
}
while(n>=1)
{
	n=n-1;
	f++;
}
printf("%d\n%d\n%d\n%d\n%d\n%d",a,b,c,d,e,f);
}
int main()
{
    int m,n,x,i,an=0;
    cin>>m;
    if  (m/100>0) {cout<<m/100<<endl;m=m% 100;}else cout<<0<<endl;
      if  (m/50>0) {cout<<m/50<<endl;m=m% 50;}else cout<<0<<endl;
        if  (m/20>0) {cout<<m/20<<endl;m=m% 20;}else cout<<0<<endl;
          if  (m/10>0) {cout<<m/10<<endl;m=m% 10;}else cout<<0<<endl;
            if  (m/5>0) {cout<<m/5<<endl;m=m% 5;}else cout<<0<<endl;
     cout<<m;
 cin>>m;
    
    return 0;
  
    }
int main(){
	int x,a,b,q,w,r,t,y,c,d,e,f,g,h;
	scanf("%d",&x);
	c=x%100;
	d=c%50;
	e=d%20;
	f=e%10;
	g=f%5;
	h=g%2;
	a=(x-c)/100;
	b=(c-d)/50;
    q=(d-e)/20;
	w=(e-f)/10;
	r=(f-g)/5;
	t=(g-h)/2;
	y=h;
	 printf("%d\n\n",a);		 	 
	 printf("%d\n\n",b);
	 printf("%d\n\n",q);
	 printf("%d\n\n",w);	 
	 printf("%d\n\n",r);
	 printf("%d\n\n",g);
	 return 0;
}
int main()
{
   int n,a=0,b=0,c=0,d=0,e=0,f=0;
   scanf("%d",&n);
   if(n/100!=0)
  {
     a=n/100;
     n=n-100*a;
     if(n/50!=0)
    {
      b=n/50;
      n=n-b*50;
    }
    if(n/20!=0)
    {
       c=n/20;
       n=n-c*20;
    }
    if(n/10!=0)
    {
       d=n/10;
       n=n-d*10;
    }
    if(n/5!=0)
    {
       f=n/5;
       n=n-f*5;
    }
   if(n/1!=0)
    {
       e=n/1;
       n=n-e*1;
    }
  }
  else
  {
      if(n/50!=0)
    {
      b=n/50;
      n=n-b*50;
    }
    if(n/20!=0)
    {
       c=n/20;
       n=n-c*20;
    }
    if(n/10!=0)
    {
       d=n/10;
       n=n-d*10;
    }
   if(n/5!=0)
    {
       f=n/5;
       n=n-f*5;
    }
   if(n/1!=0)
    {
       e=n/1;
       n=n-e*1;
    }
  }
  printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,f,e);
  return 0;
}
int main(){
     int a,b,c,d,e,f,g,i,j,k,l,m,n;
	 scanf("%d",&a);
	 i=0;
	 j=0;
	 k=0;
	 l=0;
	 m=0;
	 n=0;
	 for (b=a;b>99;){
	 b-=100;
	 i=i+1;
     }
	 for (c=b;c>49;){
	 c-=50;
	 j=j+1;
	 }
     for(d=c;d>19;){
	 d-=20;
	 k=k+1;
	 }
	 for(e=d;e>9;){
	 e-=10;
	 l=l+1;
	 }
	 for(f=e;f>4;){
	 f-=5;
	 m=m+1;
	 }
	 for(g=f;g>0;){
	 g-=1;
	 n=n+1;
	 }
	 printf("%d\n%d\n%d\n%d\n%d\n%d\n",i,j,k,l,m,n);
	 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%100)%50)-((n%100)%50)%20)/20;
d=(((n%100)%50)%20-(((n%100)%50)%20)%10)/10;
e=((((n%100)%50)%20)%10-((((n%100)%50)%20)%10)%5)/5;
f=n%5;
printf("%d\n%d\n%d\n%d\n%d\n%d",a,b,c,d,e,f);

return 0;
}
/*
 * ??????????
 * ?????2011?11?6?
 * ??????
 * ???????????????
 */
int main()                                         //?????
{  int sum;       //sum?????
   int num100=0,num50=0,num20=0,num10=0,num5=0,num1=0;    //???????????
   cin >> sum;                                //??????
   int yu100=sum%100;
   num100=(sum-yu100)/100;                    //???????????
   int yu10=yu100%10;
   int shiwei=yu100-yu10;                     //?????
   if(shiwei>=50) {
	   num50=1;
	   int yu20=shiwei-50;
	   if(yu20%20==0) num20=yu20/20;
	   else num20=(yu20-10)/20;
	   num10=(yu20-20*num20)/10;
   }
   else {num50=0;                              //??50??????
       if(shiwei%20==0) {num20=shiwei/20;
       num10=0;}
       else { num20=(shiwei-10)/20;
       num10=(shiwei-20*num20)/10;             //??20?10??????
       }
   }
   int gewei;                          //??5??1??????
   gewei=sum%10;
   if(gewei==0) {
	   num5=0;
	   num1=0;
   }
   else if(gewei<5&&gewei>0){
	   num5=0;
	   num1=gewei;
   }
   else if(gewei>=5&&gewei<=9){
	   num5=1;
	   num1=gewei%5;
   }

   cout << num100 << endl;
   cout << num50 << endl;
   cout << num20 << endl;
   cout << num10 << endl;
   cout << num5 << endl;
   cout << num1 << endl;                       //???????



	return 0;
}                                                   //?????
int main()
{
	int i,n,a[6],b[6]={100,50,20,10,5,1};
	scanf("%d",&n);
	for(i=0;i<6;i++){
		a[i]=n/b[i];
		n=n%b[i];
	}
	for(i=0;i<6;i++){
		printf("%d\n",a[i]);
	}
	return 0;
}
int main()
{
	int n,i;
	int a[6]={100,50,20,10,5,1};
	int b[6]={0};
	scanf("%d",&n);
	for(i=0;i<6;i++)
	{
		while(n>=a[i])
		{
			b[i]++;
			n-=a[i];
		}
	}
	for(i=0;i<6;i++)
	{
		printf("%d\n",b[i]);
	}
	return 0;
}
int main(){
	int n,a,b,c,d,e,f;
    scanf("%d",&n);
	a=n/100;
	b=(n-100*a)/50;
	c=(n-100*a-50*b)/20;
	d=(n-100*a-50*b-c*20)/10;
	e=(n%10)/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 a[6];
	int b[6]={100,50,20,10,5,1};
	int n,i,m=0;
	scanf("%d",&n);
	a[0]=n/100;
	for(i=1;i<6;i++)
	{
		m+=a[i-1]*b[i-1];
		a[i] = (n-m)/b[i];
		
	}
	for (i=0;i<6;i++)
	{
		printf("%d\n",a[i]);
	}
	return 0;
}
int main() {
	int a;
	int b,c,d,e,f;
	scanf("%d",&a);
	b=0;
	c=0;
	d=0;
	e=0;
	f=0;

	while(a>=100){
		a=a-100;
		b=b++;
	}
	while(a>=50){
		a=a-50;
		c=c++;	
	}
	while(a>=20){
		a=a-20;
		d=d++;	
	}
	while(a>=10){
		a=a-10;
		e=e++;	
	}
	while(a>=5){
		a=a-5;
		f=f++;	
	}
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",b,c,d,e,f,a);
    return 0;
	




}
void main()
{
	int k,a[6],i;
	scanf("%d",&k);
	a[0]=k/100;k-=a[0]*100;
	a[1]=k/50;k-=a[1]*50;
	a[2]=k/20;k-=a[2]*20;
	a[3]=k/10;k-=a[3]*10;
	a[4]=k/5;k-=a[4]*5;
	a[5]=k;
	for(i=0;i<6;i++)
		printf("%d\n",a[i]);
}
int main()
{
	int i,n,a=0,b=0,c=0,d=0,e=0,f=0;
	scanf("%d",&n);
	for(i=n;i>=100;i=i-100)
		a++;
	for(i;i>=50;i=i-50)
		b++;
	for(i;i>=20;i=i-20)
		c++;
	for(i;i>=10;i=i-10)
		d++;
	for(i;i>=5;i=i-5)
		e++;
	f=i;
	printf("%d\n%d\n%d\n%d\n%d\n%d",a,b,c,d,e,f);
	return 0;
}
int main()
{
int n,a1,a2,a3,a4,a5,a6;
scanf("%d",&n);
if(n>1000||n<=0)
printf("error");
else
{
a1=n/100;
a2=n/50-a1*2;
a3=(n-a1*100-a2*50)/20;
a4=(n-a1*100-a2*50-a3*20)/10;
a5=(n-a1*100-a2*50-a3*20-a4*10)/5;
a6=(n-a1*100-a2*50-a3*20-a4*10-a5*5)/1;
printf("%d\n%d\n%d\n%d\n%d\n%d\n",a1,a2,a3,a4,a5,a6);
}
return 0;
}
int main()
{
	int money, a[7], i;
	cin >> money;
	a[0]=100; a[1]=50; a[2]=20; a[3]=10; a[4]=5; a[5]=1;
	for(i=0; i<6; i++)
	{
		cout << money/a[i] << endl;
		money=money%a[i];
	}
	return 0;
}
int main(int argc, char* argv[])
{

int a[10],b[10],i,n,p;
scanf("%d",&n);
a[1] = 100;
a[2] = 50;
a[3] =20;
a[4]=10;
a[5]=5;
a[6]=1;

for (i=1;i<=6;i++)
{	
	for (p=1;p*a[i]<=n;p++)
	{}
	b[i]=p-1;
	n=n-b[i]*a[i];
}

for (i=1;i<=6;i++)
{	
	printf("%d\n",b[i]);

}
	
	return 0;
}
int main()
{
	int n,a,b,c,d,e,f;
	int A,B,C,D,E;
	cin>>n;
	a=n/100;
	A=n%100;
	b=A/50;
	B=A%50;
	c=B/20;
	C=B%20;
	d=C/10;
	D=C%10;
	e=D/5;
	E=D%5;
	f=E;
	cout<<a<<endl;
	cout<<b<<endl;
	cout<<c<<endl;
	cout<<d<<endl;
	cout<<e<<endl;
	cout<<f<<endl;
	return 0;
}
int main(){
	int m,a,b,c,d,e,f;
	scanf("%d",&m);
	a=m/100;
	m=m%100;
	b=m/50;
	m=m%50;
	c=m/20;
	m=m%20;
	d=m/10;
	m=m%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,a1,b1,c1,d1,e1,f1;
	cin>>n;
	a=n/100;
    a1=n%100;
	b=a1/50;
	b1=(n-a*100)%50;
	c=b1/20;
	c1=(n-b*50)%20;
	d=c1/10;
	d1=(n-c*20)%10;
	e=d1/5;
	e1=(n-d*10)%5;
	f=e1;
	cout<<a<<endl<<b<<endl<<c<<endl<<d<<endl<<e<<endl<<f<<endl;
	cin.get();
	return 0;
}
int main ()
{
	int n,a=0,b=0,c=0,d=0,e=0,f=0,x,y;
	scanf("%d",&n);

	x=n/10;
	y=x/10;
	
	a=y;
	if(x-10*y==0){b=0;c=0;d=0;}
	if(x-10*y==1){b=0;c=0;d=1;}
	if(x-10*y==2){b=0;c=1;d=0;}
	if(x-10*y==3){b=0;c=1;d=1;}
	if(x-10*y==4){b=0;c=2;d=0;}
	if(x-10*y==5){b=1;c=0;d=0;}
	if(x-10*y==6){b=1;c=0;d=1;}
	if(x-10*y==7){b=1;c=1;d=0;}
	if(x-10*y==8){b=1;c=1;d=1;}
	if(x-10*y==9){b=1;c=2;d=0;}
	if(n-x*10==0){e=0;f=0;}
	if(n-x*10==1){e=0;f=1;}
	if(n-x*10==2){e=0;f=2;}
	if(n-x*10==3){e=0;f=3;}
	if(n-x*10==4){e=0;f=4;}
	if(n-x*10==5){e=1;f=0;}
	if(n-x*10==6){e=1;f=1;}
	if(n-x*10==7){e=1;f=2;}
	if(n-x*10==8){e=1;f=3;}
	if(n-x*10==9){e=1;f=4;}
					
    

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

}
int main()
{
	int n;
	scanf("%d",&n);
	printf("%d\n%d\n%d\n%d\n%d\n%d",n/100,n%100/50,n%50/20,n%50%20/10,n%10/5,n%5);
	return 0;
}
main()
{
	int x,a,b,c,d,e,f;
	scanf("%d",&x);
    a=x/100;
	b=x%100/50;
	c=x%100%50/20;
	d=x%100%50%20/10;
	e=x%100%10/5;
	f=x%100%10%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, i, j, m, k, l, h;
	scanf("%d", &n);
	i=(int)n/100;
	j=(int)(n-100*i)/50;
	m=(int)(n-100*i-50*j)/20;
	l=(int)(n-100*i-50*j-20*m)/10;
	k=(int)(n-100*i-50*j-20*m-10*l)/5;
	h=n-100*i-50*j-20*m-10*l-5*k;
	printf("%d\n%d\n%d\n%d\n%d\n%d", i, j, m, l, k, h);
	return 0;
}
int main(int argc, char* argv[])
{
	int n, a=0, b=0, c=0, d=0, e=0, f=0;
	scanf("%d",&n);
	if(n>=100){
		a=n/100;
		n=n%100;
	}
    if(n>=50){
		b=n/50;
		n=n%50;
	}
	if(n>=20){
		c=n/20;
		n=n%20;
	}
	if(n>=10){
		d=n/10;
		n=n%10;
	}
	if(n>=5){
		e=n/5;
		n=n%5;
	}
         if(n<5 && n>0)f=n;
	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 mon;
	int a, b, c, d, e, f;
	scanf("%d",&mon);
	a=(mon-mon%100)/100;
	b=(mon%100-(mon-a*100)%50)/50;
	c=(mon-a*100-b*50-(mon-a*100-b*50)%20)/20;
	d=(mon-(2*a+b)*50-c*20)/10;
	e=(mon-(10*a+5*b+2*c+d)*10)/5;
	f=mon-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;


}
int main()
{
	int n;
	scanf("%d",&n);

	int l;
	int r;
	l=n%100;
	r=(n-l)/100;
	printf("%d\n",r);
	n=l;
	l=n%50;
	r=(n-l)/50;
	printf("%d\n",r);
	n=l;
	l=n%20;
	r=(n-l)/20;
	printf("%d\n",r);
	n=l;
	l=n%10;
	r=(n-l)/10;
	printf("%d\n",r);
	n=l;
	l=n%5;
	r=(n-l)/5;
	printf("%d\n",r);
	n=l;
	l=n%1;
	r=(n-l)/1;
	printf("%d",r);





	
	return 0;
}
int main()
{
	int n,i,q[6];
	scanf("%d",&n);
	
	for(i=1;;i++){

		n-=100;
		if(n<0){
			q[0]=i-1;
			break;}}
	n=n+100;
	for(i=1;;i++){
		n=n-50;
		if(n<0){
			q[1]=i-1;
			break;}}
	n=n+50;
	for(i=1;;i++){
		n=n-20;
		if(n<0){
			q[2]=i-1;
			break;}}
	n=n+20;
	for(i=1;;i++){
		n=n-10;
		if(n<0){
			q[3]=i-1;
			break;}}
	n=n+10;
   for(i=1;;i++){
		n=n-5;
		if(n<0){
			q[4]=i-1;
			break;}}
	n=n+5;
	q[5]=n;
	for(i=0;i<6;i++)
	printf("%d\n",q[i]);
	return 0;
}
int main()
{
	int n,a,b,c,d,e,f;
	scanf("%d",&n);
	if((n/100)!=0)
	{
		a=n/100;
		n-=(a*100);
	}
	else
	{
		a=0;
	}
	if(n/50!=0)
	{
		b=n/50;
		n-=(b*50);
	}
	else
	{
		b=0;
	}
	if(n/20!=0)
	{
		c=n/20;
		n-=(c*20);
	}
	else
	{
		c=0;
	}
	if(n/10!=0)
	{
		d=n/10;
		n-=(d*10);
	}
	else
	{
		d=0;
	}
	if(n/5!=0)
	{
		e=n/5;
		n-=(e*5);
	}
	else
	{
		e=0;
	}
	f=n;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
	return 0;
}