semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int n,a,b,c,d,e,f,x;
	scanf("%d",&n);
    a=(int)(n/100);
	x=n-100*a;
	if(x>=50)
	{
		b=1;
		x-=50;
	}
	else b=0;
    c=(int)(x/20);
	x-=c*20;
    d=(int)(x/10);
	x-=d*10;
	if(x>=5)
	{
		e=1;
		x-=5;
	}
	else e=0;
	f=x;
	printf("%d\n%d\n%d\n%d\n%d\n%d",a,b,c,d,e,f);
    return 0;
}
int main()
{
int x;
cin>>x;
int x100=x/100;
cout<<x100<<endl;
x=x%100;
int x50=x/50;
cout<<x50<<endl;
x=x%50;
int x20=x/20;
cout<<x20<<endl;
x=x%20;
int x10=x/10;
cout<<x10<<endl;
x=x%10;
int x5=x/5;
cout<<x5<<endl;
x=x%5;
cout<<x<<endl;
return 0;
}
int main(){
	int n;
	int r, a, b, c, d, e, f;
	cin >> n;
	r = n;
	a = (r - r % 100) / 100;
	r = r % 100;
	b = (r - r % 50) / 50;
	r = r % 50;
	c = (r - r % 20) / 20;
	r = r % 20;
	d = (r - r % 10) / 10;
	r = r % 10;
	e = (r - r % 5) / 5;
	r = r % 5;
	f=r;
	cout<<a<<endl;
	cout<<b<<endl;
	cout<<c<<endl;
	cout<<d<<endl;
	cout<<e<<endl;
	cout<<f<<endl;
return 0;
}
int main()
{
	int n,i,a[6]={100,50,20,10,5,1},b[6]={0};
	scanf("%d",&n);
	for(i=0;i<5;i++)
	{
		b[i]=n/a[i];
		n=n%a[i];
	}
	b[5]=n;
	for(i=0;i<6;i++)
	{
		printf("%d\n",b[i]);
	}
	return 0;
}
int main()
{
	int n,a,b,c,d,e,f,a1,b1,c1,d1,e1;
 scanf("%d",&n);
 a=(int)n/100;
 a1=n-a*100;
b=(int)a1/50;
b1=a1-b*50;
c=(int)b1/20;
c1=b1-c*20;
d=(int)c1/10;
d1=c1-d*10;
e=(int)d1/5;
e1=d1-e*5;
f=(int)e1/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);
}
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);
    return 0;
}
int main(int argc, char* argv[])
{
	int n,a100,a50,a20,a10,a5,a1;
	scanf("%d",&n);
	a100=n/100;n=n%100;
	a50=n/50;n=n%50;
	a20=n/20;n=n%20;
	a10=n/10;n=n%10;
	a5=n/5;n=n%5;
	a1=n;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a100,a50,a20,a10,a5,a1);
	return 0;
}
int main()
{
	int num,j,i,an[6]={100,50,20,10,5,1};
	cin>>num;
	cout<<num/an[0]<<endl;
	for(i=1;i<6;i++)
	{
	num=num-num/an[i-1]*an[i-1];
	cout<<num/an[i]<<endl;
	}
	return 0;
}
int main()
{
int a,b,c,d,e,f,g,h,i;
scanf("%d",&a);
b=a/100;
c=a%100;
d=c/50;
c=c%50;
e=c/20;
c=c%20;
f=c/10;
c=c%10;
g=c/5;
c=c%5;
printf("%d\n%d\n%d\n%d\n%d\n%d\n",b,d,e,f,g,c);
return 0;
}
int main()
{
	int a,b;
	scanf ("%d",&a);
	b=a/100;
	a=a-b*100;
	printf ("%d\n",b);
	b=a/50;
	a=a-b*50;
	printf ("%d\n",b);
	b=a/20;
	a=a-b*20;
	printf ("%d\n",b);
    b=a/10;
	a=a-b*10;
	printf ("%d\n",b);
    b=a/5;
	a=a-b*5;
	printf ("%d\n",b);
	printf ("%d\n",a);
	return 0;
}
int main()
{
	int i,n;
	int a[10];
	int b[10];
	scanf("%d", &n);
	a[1]=100;
	a[2]=50;
	a[3]=20;
	a[4]=10;
	a[5]=5;
	a[6]=1;
	b[1]=n/a[1];
	printf("%d\n", b[1]);
	for(i=2;i<=6;i++)
	{
		n=n-a[i-1]*b[i-1];
		b[i]=n/a[i];
		printf("%d\n", b[i]);
	}
	
	return 0;
}
int main()
{
int sum;
scanf("%d",&sum);
int i=0;
while(sum>=100)
{
i++;
sum=sum-100;
}
printf("%d\n",i);
i=0;
while(sum>=50)
{
i++;
sum=sum-50;
}
printf("%d\n",i);
i=0;
while(sum>=20)
{
i++;
sum=sum-20;
}
printf("%d\n",i);
i=0;
while(sum>=10)
{
i++;
sum=sum-10;
}
printf("%d\n",i);
i=0;
while(sum>=5)
{
i++;
sum=sum-5;
}
printf("%d\n",i);
i=0;
while(sum>=1)
{
i++;
sum=sum-1;
}
printf("%d\n",i);
}
int main(){
    int n, a[7]={0}, b[6]={0};
    scanf("%d", &n);
    a[1]=n/100;
    b[1]=n%100;
    printf("%d\n", a[1]);
    a[2]=b[1]/50;
    b[2]=b[1]%50;
    printf("%d\n", a[2]);
    a[3]=b[2]/20;
    b[3]=b[2]%20;
    printf("%d\n", a[3]);
    a[4]=b[3]/10;
    b[4]=b[3]%10;
    printf("%d\n", a[4]);
    a[5]=b[4]/5;
    b[5]=b[4]%5;
    printf("%d\n", a[5]);
    a[6]=b[5]/1;
    printf("%d\n", a[6]);
    return 0;
}
int main()
{
	int sum,n1,n2,n3,n4,n5,n6;
	cin>>sum;
    n1=(sum-sum%100)/100;
	sum=sum%100;
	n2=(sum-sum%50)/50;
	sum=sum%50;
	n3=(sum-sum%20)/20;
	sum=sum%20;
	n4=(sum-sum%10)/10;
	sum=sum%10;
	n5=(sum-sum%5)/5;
	sum=sum%5;
	n6=sum%5;
	cout<<n1<<endl<<n2<<endl<<n3<<endl<<n4<<endl<<n5<<endl<<n6<<endl;
	return 0;
	

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

}
int main()
{
int a[6]={100,50,20,10,5,1},count[6]={0,0,0,0,0,0};
int n;
cin>>n;
for(int i=0;i<6;i++)
    {
       if(n>=a[i])
         {
           count[i]=n/a[i];
           n=n-count[i]*a[i];
           }
         cout<<count[i]<<endl;
    }
return 0;
}
int main(){
int a,b,c,d,e,f,n;
scanf("%d",&n);
a=0;b=0;c=0;d=0;e=0;f=0;
a=n/100;
n=n-a*100;
b=n/50;
n=n-b*50;
c=n/20;
n=n-c*20;
d=n/10;
n=n-d*10;
e=n/5;
f=n-e*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 bill,pay[6],unit[6]={100,50,20,10,5,1},i,j;
	scanf("%d",&bill);
    for(i=1;i<=6;i++)
	{
		pay[i-1]=bill/unit[i-1];
		bill-=pay[i-1]*unit[i-1];
	}
	for(j=1;j<=6;j++)
		printf("%d\n",pay[j-1]);
	return 0;
}
int main()
{
	int money;
	int i;
	int num[6] = { 0 };
	int mon[6] = { 100,50,20,10,5,1};
	 
	cin >> money;
	for( i = 0; i < 6; i ++)
	{
		num[i] = money / mon[i];
		money = money % mon[i];
	 
	}
	for( i = 0; i < 6; i ++)
          cout << num [i] << endl;
	return 0;
}
int main()
{
	int x,a,b,c,d,e,f;
	scanf("%d",&x);
	if(x>=100)
	{
		a=x/100;
		b=(x-a*100)/50;
		c=(x-a*100-b*50)/20;
		d=(x-a*100-b*50-c*20)/10;
		e=(x-a*100-b*50-c*20-d*10)/5;
		f=x-a*100-b*50-c*20-d*10-e*5;
	}
	else
	{
		if(x>=10)
		{
			a=0;
		b=(x-a*100)/50;
		c=(x-a*100-b*50)/20;
		d=(x-a*100-b*50-c*20)/10;
		e=(x-a*100-b*50-c*20-d*10)/5;
		f=x-a*100-b*50-c*20-d*10-e*5;
		}
		else
		{
			a=0;
			b=0;
			c=0;
			f=0;
		e=(x-a*100-b*50-c*20-d*10)/5;
		f=x-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;
}
int main()
{
 int i, n;
 int v[6] = {100, 50, 20, 10, 5, 1}, r[6] = {0};
 scanf("%d", &n);
 double sum = 1, deal = 1;
 for(i = 0; i < 6; i++)
 {
   while(n >= v[i]) 
  {
   r[i]++;
   n-=v[i];
  }
 }
 for(i = 0; i < 6; i++)
 {
  printf("%d\n", r[i]);
 }
 return 0;
}
int main()
{
	int n,a1,a2,b1,b2,c1,c2,d1,d2,e1,e2,f1,f2;
	scanf("%d",&n);
	a1=n/100;
	a2=n%100;
	b1=a2/50;
	b2=a2%50;
	c1=b2/20;
	c2=b2%20;
	d1=c2/10;
	d2=c2%10;
	e1=d2/10;
	e2=d2%10;
	f1=e2/5;
	f2=e2%5;
	printf("%d\n",a1);
	printf("%d\n",b1);
	printf("%d\n",c1);
	printf("%d\n",d1);
	printf("%d\n",f1);
	printf("%d\n",f2);
	return 0;
}
int main()
{
	int money,yuan100,yuan50,yuan20,yuan10,yuan5,yuan1;
	scanf("%d",&money);
	if(money<0)
		printf("Error!\n");
	else
	{
		yuan100=(money-(money%100))/100;
	    money=money-yuan100*100;
	    yuan50=(money-(money%50))/50;
	    money=money-yuan50*50;
	    yuan20=(money-(money%20))/20;
	    money=money-yuan20*20;
	    yuan10=(money-(money%10))/10;
	    money=money-yuan10*10;
	    yuan5=(money-(money%5))/5;
	    money=money-yuan5*5;
	    yuan1=money;
	    
		    printf("%d\n",yuan100);
	    
		    printf("%d\n",yuan50);

		    printf("%d\n",yuan20);
	    
		    printf("%d\n",yuan10);
	    
		    printf("%d\n",yuan5);
	    printf("%d\n",yuan1);
	}
	return 0;
}
int main()
{
	int n,s1,s2,s3,s4,s5,s6;
	int a=100,b=50,c=20,d=10,e=5,f=1;
	scanf("%d",&n);
	s1=n/100;
	s2=n%100/50;
	s3=n%100%50/20;
	s4=n%100%50%20/10;
	s5=n%100%50%20%10/5;
	s6=n%100%50%20%10%5/1;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",s1,s2,s3,s4,s5,s6);
	return 0;
}
int main()
{
	int n,a=0,b=0,c=0,d=0,e=0;
	scanf("%d",&n);
	a=n/100;
	printf("%d\n",a);
	n=n-100*a;
	b=n/50;
	printf("%d\n",b);
	n=n-50*b;
	c=n/20;
	printf("%d\n",c);
	n=n-20*c;
	d=n/10;
	printf("%d\n",d);
	n=n-10*d;
	e=n/5;
	printf("%d\n",e);
	n=n-5*e;
	printf("%d\n",n);
	return 0;
}
int main()
{
	int n,a,b;            //????
	cin>> n;                     //????
	if(n>=100)               //????????100?50,20,10,5
	{
		a=n%100;
		b=(n-a)/100;
		cout<< b <<endl;       //????100,50,20,10,5,1???
		n=a;
	}
	else
	{
		cout<<"0"<<endl;             
	}
	if(n>=50)
	{
		a=n%50;
		b=(n-a)/50;
		cout<< b << endl;      
		n=a;
	}
	else
	{
		cout<<"0"<<endl;
	}
	if(n>=20)
	{
		a=n%20;
		b=(n-a)/20;
		cout<< b <<endl;
		n=a;
	}
	else
	{
		cout<<"0"<<endl;
	}
	if(n>=10)
	{
		a=n%10;
		b=(n-a)/10;
		cout<< b <<endl;
		n=a;
	}
	else
	{
		cout<<"0"<<endl;
	}
	if(n>=5)
	{
		a=n%5;
		b=(n-a)/5;
		cout<<b <<endl;
		n=a;
	}
	else
	{
		cout<<"0"<<endl;
	}
	cout<< n;
	return 0;	

}
int main()
{
    int m,i,r[max]={100,50,20,10,5,1},p[max];
    scanf("%d",&m);
    for(i=0;i<max;i++)
    {
        p[i] =m/r[i];
        m=m%r[i];    
    }
    for(i=0;i<max;i++)
     {
         printf("%d\n",p[i]);
     }
     return 0;
}
int main(int argc, char* argv[])
{
	int data[6]={100,50,20,10,5,1};
	int num[6]={0};
	int sum,i;
	scanf("%d",&sum);
	for(i=0;i<6;i++){
		for(;;){
			if(sum-data[i]>=0){
				sum=sum-data[i];
		        num[i]++;
			}
			else break;
		}

	    printf("%d\n",num[i]);
	}

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

	return 0;
}
int main()
{
	int m,a,b,c,d,e,f;
	scanf("%d",&m);
	if(m/100==0)
		printf("0\n");
	else
		printf("%d\n",m/100);
	a=m-100*(m/100);
	if(a/50==0)
		printf("0\n");
	else
		printf("%d\n",a/50);
	b=a-50*(a/50);
	if(b/20==0)
		printf("0\n");
	else
		printf("%d\n",b/20);
	c=b-20*(b/20);
	if(c/10==0)
		printf("0\n");
	else
		printf("%d\n",c/10);
	d=c-10*(c/10);
	if(d/5==0)
		printf("0\n");
	else
		printf("%d\n",d/5);
	e=d-5*(d/5);
	if(e/1==0)
		printf("0\n");
	else
		printf("%d\n",e/1);
	return 0;





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

	for(i=1;i<7;i++)
	{

	j=0;
	 while( s>=a[i] ){
		 j=j+1;
         s = s - a[i];
	 }
     printf("%d\n", j);
	}
	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-a*100-b*50-c*20-d*10-e*5;
    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 argc, char* argv[])
{   int n[10],b;
    scanf("%d",&n[10]);
	if(n[10]>=100){n[1]=n[10]/100;b=n[10]%100;}
	else{n[1]=0;}
	if(b>=50){n[2]=b/50;b=b%50;}
	else{n[2]=0;}
	if(b>=20){n[3]=b/20;b=b%20;}
	else{n[3]=0;}
	if(b>=10){n[4]=b/10;b=b%10;}
	else{n[4]=0;}
	if(b>=5){n[5]=b/5;b=b%5;}
	else{n[5]=0;}
	if(b>=1){n[6]=b/1;b=b%1;}
	else{n[6]=0;}
	printf("%d\n",n[1]);
    printf("%d\n",n[2]);
    printf("%d\n",n[3]);
    printf("%d\n",n[4]);
    printf("%d\n",n[5]);
    printf("%d\n",n[6]);
	return 0;
}
int main(){
	int n,i,a[6]={0},b[6];
	b[0]=100;
	b[1]=50;
	b[2]=20;
	b[3]=10;
	b[4]=5;
	b[5]=1;
	scanf("%d",&n);
	int q=n,p=n;
	a[0]=q/100;
	p-=a[0]*b[0];
	for(i=1;i<6;i++){
		
		a[i]=p/b[i];
        p-=a[i]*b[i];
	}
	for(i=0;i<6;i++){
		printf("%d\n",a[i]);
	}		
	return 0;
}
int main()
{
	int n,i,a[5]={0};
	scanf("%d",&n);
	if(n/100>0)
	{
		a[0]=n/100;
		n=n%100;
	}
	if(n/50>0)
	{
		a[1]=n/50;
		n=n%50;
	}
	if(n/20>0)
	{
		a[2]=n/20;
		n=n%20;
	}
	if(n/10>0)
	{
		a[3]=n/10;
		n=n%10;
	}
	if(n/5>0)
	{
		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 n,a,b,c,d,e,f;
	a=0;
	b=0;
	c=0;
	d=0;
	e=0;
	f=0;
	scanf("%d",&n);
	a=n/100;
	b=(n%100)/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%5;
	printf("%d\n%d\n%d\n%d\n%d\n%d",a,b,c,d,e,f);
	return 0;
}
int main(){
    int rmb;
    int a,b,c,d,e,f;
    scanf("%d",&rmb);
    a=0;
    b=0;
    c=0;
    d=0;
    e=0;
    f=0;
    while(rmb>=100){
                    rmb-=100;
                    a++;
                    }
    while(rmb>=50){
                    rmb-=50;
                    b++;
                    }
    while(rmb>=20){
                    rmb-=20;
                    c++;
                    }
    while(rmb>=10){
                    rmb-=10;
                    d++;
                    }
    while(rmb>=5){
                    rmb-=5;
                    e++;
                    }
    while(rmb>=1){
                    if (rmb==0){
                               break;
                               }
                    rmb-=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 n;
	int SZ[6];
	scanf("%d",&n);
	SZ[0]=n/100;
	SZ[1]=n%100/50;
	SZ[2]=(n%100-SZ[1]*50)/20;
    SZ[3]=(n%100-SZ[1]*50-SZ[2]*20)/10;
	SZ[4]=n%10/5;
	SZ[5]=n%10-SZ[4]*5;
    for(int i=0;i<6;i++)
	{
		printf("%d\n",SZ[i]);
	}
	return 0;
}
int main()
{
	int n, a, b, c, d, e, f;
	scanf("%d", &n);
	printf("%d\n", n / 100);
	n %= 100;
	printf("%d\n", n / 50);
	n %= 50;
	printf("%d\n", n / 20);
	n %= 20;
	printf("%d\n", n / 10);
	n %= 10;
	printf("%d\n", n / 5);
	n %= 5;
	printf("%d\n", n / 1);
	n %= 1;
	return 0;
}
main(){
	int n,i,money;
	scanf("%d",&n);
	money=n;

	for(i=0;money>0;i++){
		money-=100;
	}
	if(money<0){
		money+=100;
		i--;
	}
	printf("%d\n",i);

	for(i=0;money>0;i++){
		money-=50;
	}
	if(money<0){
		money+=50;
		i--;
	}
	printf("%d\n",i);

	for(i=0;money>0;i++){
		money-=20;
	}
	if(money<0){
		money+=20;
		i--;
	}
	printf("%d\n",i);

	for(i=0;money>0;i++){
		money-=10;
	}
	if(money<0){
		money+=10;
		i--;
	}
	printf("%d\n",i);

	for(i=0;money>0;i++){
		money-=5;
	}
	if(money<0){
		money+=5;
		i--;
	}
	printf("%d\n",i);
	printf("%d\n",money);
	return 0;
}
int main(){
	int p,a,b,c,d,e,f,x,y,w;
	scanf("%d",&p);
	w=p%10;
	a=p/100;
	x=(p-100*a)/10;
	if(x>=5){
		b=1;
		y=x-5;
	}else{
		b=0;
		y=x;
	}
	if(y==4){
		c=2;
		d=0;
	}else if(y==3){
		c=1;
		d=1;
	}else if(y==2){
		c=1;
		d=0;
	}else if(y==1){
		c=0;
		d=1;
	}else if(y==0){
		c=0;
		d=0;
	}
	if(w>=5){
		e=1;
		f=w-5;
	}else if(w<5){
		e=0;
		f=w;
	}
	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,b,c,d,e,f,g;
    scanf("%d",&a);
    b=a/100;
	a-=100*b;
	c=a/50;
	a-=50*c;
	d=a/20;
	a-=20*d;
	e=a/10;
	a-=10*e;
	f=a/5;
	a-=5*f;
	g=a/1;
	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,a[6],i,b[6]={100,50,20,10,5,1};
	scanf("%d",&n);
	for(i=0;i<6;i++)
	{
		a[i]=n/b[i];
		n=n-a[i]*b[i];
		printf("%d\n",a[i]);
	}
return 0;
}
int main()
{
	int n,a,b,c,d,e,f;
	scanf("%d",&n);
	a=n/100;
	b=n/50-2*a;
	c=(n-100 *a-50*b)/20;
	d=(n-100 *a-50*b-20*c)/10;
	e=(n-100 *a-50*b-20*c-d*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 n,a,b,c,d,e,f;
  a,b,c,d,e,f>=0;
  scanf("%d",&n);
  a=n/100;
  b=(n%100)/50;
  c=(n%50)/20;
  d=(n-100*a-50*b-20*c)/10;
  e=(n%10)/5;
  f=n%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[6]={100,50,20,10,5,1},B[6],i;
	scanf("%d",&n);
	B[0]=n/A[0];
	for(i=1;i<6;i++){
		n=n-A[i-1]*B[i-1];
		B[i]=n/A[i];
	}
	for(i=0;i<6;i++){
		printf("%d\n",B[i]);
	}
	return 0;
}
int main()
{
int n,i,a[6];
cin>>n;
a[0]=n/100;
n%=100;
a[1]=n/50;
n%=50;
a[2]=n/20;
n%=20;
a[3]=n/10;
n%=10;
a[4]=n/5;
n%=5;
a[5]=n%5;
for(i=0;i<6;i++)
cout<<a[i]<<endl;
return 0;
}
int main()
{
    int i,er=0,ws=0,sh=0,wu=0,b=0,money;
    cin>>money;
    for(;;)
    {if(money/100>=1) {money=money-100;b=b+1;}
    else break;}//?????100??? 
    for(;;)
    {if(money/50>=1) {money=money-50;ws=ws+1;}
    else break;}//?????50??? 
    for(;;)
    {if(money/20>=1) {money=money-20;er=er+1;}
    else break;}
    for(;;)
    {if(money/10>=1) {money=money-10;sh=sh+1;}
    else break;}
    for(;;)
    {if(money/5>=1) {money=money-5;wu=wu+1;}
    else break;}
    cout<<b<<endl<<ws<<endl<<er<<endl<<sh<<endl<<wu<<endl<<money<<endl;
    return 0;
}
int main()
{
	int q,i;

	scanf("%d",&q);

	i=0;
	if(q>=100)
	{
		for(i=0;q>=100;i++)
		{
			q-=100;
		}
	}
    printf("%d\n",i);
	i=0;

	if(q>=50)
	{
	
		for(i=0;q>=50;i++)
		{
			q-=50;
		}
	
	}

	printf("%d\n",i);
	i=0;


	if(q>=20)
	{
		
		for(i=0;q>=20;i++)
		{
			q-=20;
		}
		
	}

	printf("%d\n",i);
	i=0;


	if(q>=10)
	{
		for(i=0;q>=10;i++)
		{
			q-=10;
		}
		
	}
	printf("%d\n",i);
	i=0;


	if(q>=5)
	{
		
		for(i=0;q>=5;i++)
		{
			q-=5;
		}
	}
	printf("%d\n",i);
	i=0;

	printf("%d",q);

	return 0;
}
int main()
{
int sum;
scanf("%d",&sum);
printf("%d\n",sum/100);
sum=sum-sum/100*100;
if(sum>=50)
{
printf("1\n");
sum=sum-50;
}
else
printf("0\n");
printf("%d\n",sum/20);
sum=sum-sum/20*20;
printf("%d\n",sum/10);
sum=sum-sum/10*10;
printf("%d\n",sum/5);
sum=sum-sum/5*5;
printf("%d\n",sum);
return 0;
}
void main( )
{
int n , t1 = 0 , t2 = 0 , t3 = 0 , t4 = 0 , t5 = 0 , t6 = 0 ;
scanf( "%d" , &n );
while( n >= 100 )
{
n -= 100 ;
t1 ++ ;
}
while( n >= 50 )
{
n -= 50 ;
t2 ++ ;
}
while( n >= 20 )
{
n -= 20 ;
t3 ++ ;
}
while( n >= 10 )
{
n -= 10 ;
t4 ++ ;
}
while( n >= 5 )
{
n -= 5 ;
t5 ++ ;
}
while( n >= 1 )
{
n -= 1 ;
t6 ++ ;
}
printf( "%d\n%d\n%d\n%d\n%d\n%d\n" , t1 ,t2 ,t3 ,t4, t5, t6 );
}
int main()
{
	int n;
	scanf("%d",&n);
	printf("%d\n",n/100);
	n=n-n/100*100;
	printf("%d\n",n/50);
	n=n-n/50*50;
	printf("%d\n",n/20);
	n=n-n/20*20;
	printf("%d\n",n/10);
	n=n-n/10*10;
	printf("%d\n",n/5);
	n=n-n/5*5;
	printf("%d",n);
	return 0;
}
int main()
{
	int a,b,c,d,e,f,m;
	a=0;
	b=0;
	c=0;
	d=0;
	e=0;
	f=0;
	scanf("%d",&m);
	while(m>=100)
	{
		m=m-100;
		a=a+1;
	}
	while(m>=50)
	{
		m=m-50;
		b=b+1;
	}
	while(m>=20)
	{
		m=m-20;
		c=c+1;
	}
	while(m>=10)
	{
		m=m-10;
		d=d+1;
	}
	while(m>=5)
	{
		m=m-5;
		e=e+1;
	}
	while(m>=1)
	{
		m=m-1;
		f=f+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,m;
    int sz[6]={100,50,20,10,5,1};
    int a[10000]={0};
    scanf("%d",&n);
    for(int i=0;i<6;i++){
        m=n/sz[i];
        n=n-m*sz[i];
        a[i]=m;
        
    }
    for(int p=0;p<6;p++){
        printf("%d\n",a[p]);}
        
    
        return 0;
    
    
    
}
int main()
{
	int input,hundred,fifty,twenty,ten,five;
	cin>>input;
	hundred=(input-input%100)/100;
	input=input-hundred*100;
	fifty=(input-input%50)/50;
	input=input-fifty*50;
	twenty=(input-input%20)/20;
	input=input-twenty*20;
	ten=(input-input%10)/10;
	input=input-ten*10;
	five=(input-input%5)/5;
	input=input-five*5;
	cout<<hundred<<endl<<fifty<<endl<<twenty<<endl<<ten<<endl<<five<<endl<<input<<endl;
	return 0;}
int main()
{
	int n,q,m,p,t,h,r,s,a,b,c;
	scanf("%d",&n);
	m=(n-n%100)/100;
	a=n%100;
	b=(a-a%10)/10;
	if(b>=5)
	{
		p=1;
		q=b-5;
	}
	if(b<5)
	{
		p=0;
		q=b;
	}
	if(q==4)
	{
		t=2;h=0;
	}
	if(q==3)
	{
		t=1;
		h=1;
	}
	if(q==2)
	{
		t=1;h=0;
	}
	if(q==1)
	{
		t=0;h=1;
	}
	if(q==0)
	{
		t=0;h=0;
	}
	c=a%10;
	if(c>=5)
	{
		r=1;
		s=c-5;
	}
	if(c<5)
	{
		r=0;
		s=c;
	}
	printf("%d\n%d\n%d\n%d\n%d\n%d",m,p,t,h,r,s);
	return 0;
}
int main()
{
	int n, m100, m50, m20, m10, m5;
	cin >> n;
	m100 = n % 100;
	cout << (n - m100) / 100 << endl;
	m50 = m100 % 50;
	cout << (m100 - m50) / 50 << endl;
	m20 = m50 % 20;
	cout << (m50 - m20) / 20 << endl;
	m10 = m20 % 10;
	cout << (m20 - m10) / 10 << endl;
	m5 = m10 % 5;
	cout << (m10 - m5) / 5 << endl;
	cout << m5 << endl;
	return 0;
}
int main()
{
    int n100=0;  //????????????? 
    int n50=0;
    int n20=0;
    int n10=0;
    int n5=0;
    int n1=0;
    int n=0;   //?????
    int p=0;  //???? 
    cin>>n;
    p=n%100; 
    n100=(n-p)/100;
    n=p%50;
    n50=(p-n)/50;
    p=n%20;
    n20=(n-p)/20;
    n=p%10;
    n10=(p-n)/10;
    p=n%5;
    n5=(n-p)/5;
    n1=p;
    cout<<n100<<endl;
    cout<<n50<<endl;
    cout<<n20<<endl;
    cout<<n10<<endl;
    cout<<n5<<endl;
    cout<<n1<<endl;
    return 0; 
    
     
}
int main()
{
	int n, i, m, a, b, c, d, e, f;
	scanf("%d", &n);
	for(i=1;i<=n;i++)
	{
		if(i*100>n)
			break;
	}
	a=i-1;
	m=n-a*100;
	for(i=1;i<=m;i++)
	{
		if(i*50>m)
			break;
	}
	b=i-1;
	m=m-b*50;
	for(i=1;i<=m;i++)
	{
		if(i*20>m)
			break;
	}
	c=i-1;
	m=m-c*20;
	for(i=1;i<=m;i++)
	{
		if(i*10>m)
			break;
	}
	d=i-1;
	m=m-d*10;
	for(i=1;i<=m;i++)
	{
		if(i*5>m)
			break;
	}
	e=i-1;
	f=m-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 money,bz[6]={100,50,20,10,5,1},y,i,num[6];
	cin>>money;
	y=money;
	for(i=0;i<6;i++)
	{
		if(y<bz[i])
		{
			num[i]=0;
			continue;
		}
		else
		{
            num[i]=(y/bz[i]);
			y=y%bz[i];
		}
	}
	for(i=0;i<6;i++)
	{
		cout<<num[i]<<endl;
	}
	return 0;
}
int main(){
int n;
scanf("%d",&n);
int q,w,e,r,t,y,u;
q=(int)n/100;
w=(int)(n%100)/50;
e=(int)(n%50)/20;
r=(int)(n-100*q-50*w-20*e)/10;
t=(int)(n%10)/5;
y=(int)n%5;
printf("%d\n%d\n%d\n%d\n%d\n%d",q,w,e,r,t,y);
return 0;
}
int main( int argc, char* argv[] ){
	int money = 0;
	int amount = 0;
	int value = 0, i, unit[max] = {0};

	unit[0] = 100;
	unit[1] = 50;
	unit[2] = 20;
	unit[3] = 10;
	unit[4] = 5;
	unit[5] = 1;

	scanf( "%d", &money );
	
	for ( i = 0; i < max; i++ ){
		value = money / unit[i];
		printf( "%d\n", value );
		money = money - value * unit[i];
	}
	
	return 0;
}
int main()
{
	int n,a[7],i;
	cin>>n;
	a[1]=(int)(n/100);
	a[2]=(int)((n-a[1]*100)/50);
	a[3]=(int)((n-a[1]*100-a[2]*50)/20);
	a[4]=(int)((n-a[1]*100-a[2]*50-a[3]*20)/10);
	a[5]=(int)((n-a[1]*100-a[2]*50-a[3]*20-a[4]*10)/5);
	a[6]=(int)((n-a[1]*100-a[2]*50-a[3]*20-a[4]*10-a[5]*5)/1);
	for(i=1;i<=6;i++)
	{
		cout<<a[i]<<endl;
	}
	return 0;
}