semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(){
	int n;
	scanf("%d",&n);
	 int i,a,b,c,d,e;
	 for(i=0;n-100>=0;i++){
		 n=n-100;
	 }
	 
	 for(a=0;n-50>=0;a++){
		 n=n-50;
	 }
 
	 for(b=0;n-20>=0;b++){
		 n=n-20;
	 }
	 for(c=0;n-10>=0;c++){
		 n=n-10;
	 }
	 for(d=0;n-5>=0;d++){
		 n=n-5;
	 }
	 for(e=0;n-1>=00;e++){
		 n=n-1;
	 }
	 printf("%d\n%d\n%d\n%d\n%d\n%d",i,a,b,c,d,e);
	 return 0;
}
int main()
{
	int n,a,b,c,d,e,f,m;
	scanf("%d",&n);
	int i;
	i=n/100;
	printf("%d\n",i);
	a=n-i*100;
	m=a/50;
	
		printf("%d\n",m);
		b=(a-50*m)/20;
		printf("%d\n",b);
		c=(a-50*m-b*20)/10;
		printf("%d\n",c);
		d=a-a/10*10;
		e=d/5;
		printf("%d\n",e);
		f=d-5*e;
		printf("%d\n",f);
	


	return 0;


}
int main(int argc, char* argv[])
{
	int n,a,b,c,d,e,f,p,q,s,t,u;
	scanf("%d",&n);
	a=n/100;
	p=n-a*100;
	b=p/50;
	q=p-b*50;
	c=q/20;
	s=q-c*20;
	d=s/10;
	t=s-d*10;
	e=t/5;
	u=t-e*5;
	f=u;
	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;
cin>>n;
a=n/100;
cout<<a<<endl;
if(a!=0)
	n=n-100*a;
else n=n;
b=n/50;
cout<<b<<endl;
if(b!=0)
n=n-50*b;
else
	n=n;
c=n/20;
cout<<c<<endl;
if(c!=0)
	n=n-20*c;
else n=n;
d=n/10;
cout<<d<<endl;
if(d!=0)
	n=n-d*10;
else n=n;
e=n/5;
cout<<e<<endl;
if(e!=0)
	n=n-5*e;
else  n=n;
f=n;
cout<<f<<endl;
	return 0;}
int main()
{
	int sum;
	int a1,a2,a3,a4,a5,a6;
	cin>>sum;
	a1 = sum / 100;
	sum = sum - a1 * 100;
	a2 = sum / 50;
	sum = sum - a2 * 50;
	a3 = sum / 20;
	sum = sum - a3 * 20;
	a4 = sum / 10;
	sum = sum - a4 * 10;
	a5 = sum / 5;
	sum = sum - a5 * 5;
	a6 = sum / 1;
	cout<<a1<<'\n'<<a2<<'\n'<<a3<<'\n'<<a4<<'\n'<<a5<<'\n'<<a6;
	return 0;
}
void main()
{
  int m,n,a100=0,a50=0,a20=0,a10=0,a5=0,a1=0;
scanf("%d",&m);
for(;m>=100;)
{
  m=m-100;
 a100++;
}
for(;m>=50;)
{
  m=m-50;
 a50++;
}
for(;m>=20;)
{
  m=m-20;
 a20++;
}
for(;m>=10;)
{
  m=m-10;
 a10++;
}
for(;m>=5;)
{
  m=m-5;
 a5++;
}
for(;m>=1;)
{
  m=m-1;
 a1++;
}
printf("%d\n%d\n%d\n%d\n%d\n%d",a100,a50,a20,a10,a5,a1);



}
int main()
{
	int n, x, a, b, c, d, e, f;
	scanf("%d", &n);
	x=n;
	a=0;
	b=0;
	c=0;
	d=0;
	e=0;
	f=0;
	while(x>99)
	{
		x=x-100;
		a=a+1;
	}
	while(x>49)
	{
		x=x-50;
		b=b+1;
	}
	while(x>19)
	{
		x=x-20;
		c=c+1;
	}
	while(x>9)
	{
		x=x-10;
		d=d+1;
	}
	while(x>4)
	{
		x=x-5;
		e=e+1;
	}
	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 a[101] = {0};
	int n;
	cin >> n;
	while (n>0) {
		if (n>=100) {n-=100;a[100]++;}
		else if (n>=50) {n-=50;a[50]++;}
		else if (n>=20) {n-=20;a[20]++;}
		else if (n>=10) {n-=10;a[10]++;}
		else if (n>=5) {n-=5;a[5]++;}
		else if (n>=1) {n-=1;a[1]++;}
	}
	cout << a[100] << endl;
	cout << a[50] << endl;
	cout << a[20] << endl;
	cout << a[10] << endl;
	cout << a[5] << endl;
	cout << a[1] << endl;
	return 0;
}
int main()
{
	int money;scanf("%d", &money);
	int m1=0, m2=0, m3=0, m4=0, m5=0, m6=0;
	m1=money/100;
	if(money%100 != 0){
		m2=(money%100)/50;
	}
	if(money%100%50 != 0){
	m3=money%100%50/20;
	}
	if(money%100%50%20 != 0){
		m4=money%100%50%20/10;
	}
	if(money%100%50%20%10 != 0){
		m5=money%100%50%20%10/5;
	}
	if(money%100%50%20%10%5 != 0){
		m6=money%100%50%20%10%5;
	}
	printf("%d\n", m1);
	printf("%d\n", m2);
	printf("%d\n", m3);
	printf("%d\n", m4);
	printf("%d\n", m5);
	printf("%d\n", m6);
	return 0;
}
/****************?????********************
??? 
*********************************************/
int pay(int n,int money)
{
    int num;
    num=n/money;
    cout<<num<<endl;
    num=n%money;
    return num;
}
int main()
{
    int n;
    cin>>n;//??????
    n=pay(n,100);
    n=pay(n,50);
    n=pay(n,20);
    n=pay(n,10);
    n=pay(n,5);
    n=pay(n,1);
    return 0;
}
int main(){
int n,a,b,c,d,e,f;
scanf("%d",&n);
a=n/100;
if((n%100)/10==9){
	b=1;
	c=2;
	d=0;
}else if((n%100)/10==8){
	b=1;
	c=1;
	d=1;
}else if((n%100)/10==7){
	b=1;
	c=1;
	d=0;
}else if((n%100)/10==6){
	b=1;
	c=0;
	d=1;
}else if((n%100)/10==5){
	b=1;
	c=0;
	d=0;
}else if((n%100)/10==4){
	b=0;
	c=2;
	d=0;
}else if((n%100)/10==3){
	b=0;
	c=1;
	d=1;
}else if((n%100)/10==2){
	b=0;
	c=1;
	d=0;
}else if((n%100)/10==1){
	b=0;
	c=0;
	d=1;
}else if((n%100)/10==0){
	b=0;
	c=0;
	d=0;
}if((n%10)==9){
	e=1;
	f=4;
}else if((n%10)==8){
	e=1;
	f=3;
}else if((n%10)==7){
	e=1;
	f=2;
}else if((n%10)==6){
	e=1;
	f=1;
}else if((n%10)==5){
	e=1;
	f=0;
}else if((n%10)==4){
	e=0;
	f=4;
}else if((n%10)==3){
	e=0;
	f=3;
}else if((n%10)==2){
	e=0;
	f=2;
}else if((n%10)==1){
	e=0;
	f=1;
}else if((n%10)==0){
	e=0;
	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 argc, char* argv[])
{
    int k;
	scanf("%d",&k);
	int a=0,b=0,c=0,d=0,e=0,f=0;
	if((k/100)!=0)
	{
       a=k/100;
       k=k-a*100;	
	}
	if((k/50)!=0)
	{
		b=k/50;
		k=k-b*50;
	}
	if((k/20)!=0)
	{
		c=k/20;
		k=k-c*20;
	}
	if((k/10)!=0)
	{
		d=k/10;
		k=k-d*10;
	}
	if((k/5)!=0)
	{
		e=k/5;
		k=k-e*5;
	}
	if(k!=0)
	{
		f=k;
	}
	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 rest,m100,m50,m20,m10,m5,m1;//rest???????m100,m50,m20,m10,m5,m1??? 
    cin>>rest;
    m100=m50=m20=m10=m5=m1=0;//??? 
    while(rest>=100)//100??? 
    {
                    rest=rest-100;
                    m100++;
    }
    while(rest>=50)//50??? 
    {
                   rest=rest-50;
                   m50++;
    }
    while(rest>=20)//20??? 
    {
                   rest=rest-20;
                   m20++;
    }
    while(rest>=10)//10??? 
    {
                   rest=rest-10;
                   m10++;
    }
    while(rest>=5)//5??? 
    {
                  rest=rest-5;
                  m5++;
    }
    while(rest>=1)//1??? 
    {
                  rest=rest-1;
                  m1++;
    }
    cout<<m100<<endl<<m50<<endl<<m20<<endl<<m10<<endl<<m5<<endl<<m1;
    return 0;
}
/*
 * 2.cpp
 *
 *  Created on: 2011-11-6
 *      Author: b
 */

int main()
{
    int a,b,c,d,e,f,g;//????
    cin>>a;//????
    b=(int)(a/100);//100?
    c=(int)((a-100*b)/50);//50
    d=(int)((a-100*b-50*c)/20);//20
    e=(int)((a-100*b-50*c-20*d)/10);//10
    f=(int)((a-100*b-50*c-20*d-10*e)/5);//5
    g=(int)((a-100*b-50*c-20*d-10*e-5*f)/1);//1
    cout<<b<<endl;//????
    cout<<c<<endl;
    cout<<d<<endl;
    cout<<e<<endl;
    cout<<f<<endl;
    cout<<g<<endl;
	return 0;
}
int main()
{
	int n;
	int hundred,fifty,twenty,ten,five,one;
	cin >> n;
	hundred=n/100;
	fifty=n%100/50;
	twenty=n%50/20;
	ten=n%50%20/10;
	five=n%10/5;
	one=n%5;
	cout << hundred << endl << fifty << endl << twenty << endl << ten << endl << five << endl << one;
	return 0;
}
int main()
{
  int n;
  cin>>n;
  int p[6];
  p[0]=(n/100);
  p[1]=(n%100)/50;
  p[2]=(n%50)/20;
  p[3]=((n%50)-p[2]*20)/10;
  p[4]=(n%10)/5;
  p[5]=(n%5);
  for(int i=0;i<6;i++)
  {
   cout<<p[i]<<endl;
  }
  return 0;
}
int main (){

	int m,a,b,c,d,e,f;
	a=0;
	b=0;
	c=0;
	d=0;
	e=0;
	f=0;
	scanf("%d",&m);
	
	a=m/100;
	b=(m-a*100)/50;
	c=(m-a*100-b*50)/20;
	d=(m-a*100-b*50-c*20)/10;
	e=(m-a*100-b*50-c*20-d*10)/5;
	f=(m-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\n",f);
return 0;
}
int main()
{
	int sum,a=0,b=0,c=0,d=0,e=0,f=0;
	scanf("%d",&sum);
	while(sum>0)
	{
		sum-=100;
		a++;
	}
	if(sum!=0){
	sum+=100;
	a-=1;
	}
    while(sum>0)
	{
		sum-=50;
		b++;
	}
	if(sum!=0){
	sum+=50;
	b-=1;
	}
	while(sum>0)
	{
		sum-=20;
		c++;
	}
		if(sum!=0){
	sum+=20;
	c-=1;	
	}
	while(sum>0)
	{
		sum-=10;
		d++;
	}
	if(sum!=0){
	sum+=10;
	d-=1;
	}
	while(sum>0)
	{
		sum-=5;
		e++;
	}
	if(sum!=0){
	sum+=5;
	e-=1;
	}
	while(sum>0)
	{
		sum-=1;
		f++;
	}
	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;
scanf("%d",&m);
int sz[6]={100,50,20,10,5,1};
for(int i=0;i<=5;i++){
 if(m>=sz[i]){
 printf("%d\n",m/sz[i]);
 m-=(m/sz[i])*sz[i];}
 else 
 {printf("%d\n",0);}
}
return 0;
}
void main()
{
	int n,a,b,c,d,e,f;
	scanf("%d",&n);
		a=n/100;b=(n-a*100)/50;
		c=(n-a*100-b*50)/20;
		d=(n-a*100-b*50-20*c)/10;
		e=(n-a*100-b*50-20*c-d*10)/5;
		f=(n-a*100-b*50-20*c-d*10-5*e)/1;
	if(n=a+b+c+d+e+f)
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
}
int main()
{
	int N, K, Ans;
	cin >> 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",N / 1);
	N = N - N / 1;
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int a,b,c,d,e,f,g;
	a=n/100;
	if(n-(100*a)>50)
		b=1;
	else
		b=0;
	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*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,num1=0,n1,num2=0,n2,num3=0,n3,num4=0,n4,num5=0,n5,num6=0;
	cin>>n;
	num1=(n-n%100)/100;
	n1=n%100;
	cout<<num1<<endl;
	num2=(n1-n1%50)/50;
	n2=n1%50;
	cout<<num2<<endl;
	num3=(n2-n2%20)/20;
	n3=n2%20;
	cout<<num3<<endl;
	num4=(n3-n3%10)/10;
	n4=n3%10;
	cout<<num4<<endl;
	num5=(n4-n4%5)/5;
	n5=n4%5;
	cout<<num5<<endl;
	num6=n5;
	cout<<num6<<endl;
	return 0;
}
int main()
{
	int m,n[6],i;
	int a[6]={100,50,20,10,5,1},b[7];
	scanf("%d",&m);
	b[0]=m;
	for(i=0;i<6;i++)
	{
		n[i]=(int)b[i]/a[i];
		b[i+1]=b[i]%a[i];
		printf("%d\n",n[i]);
	}
	return 0;
}
int main()
{int n,s[7],i;
scanf("%d",&n);
if(n<1000){
	s[1]=n/100;
	s[2]=(n-s[1]*100)/50;
	s[3]=(n-s[1]*100-s[2]*50)/20;
	s[4]=(n-s[1]*100-s[2]*50-s[3]*20)/10;
	s[5]=(n-s[1]*100-s[2]*50-s[3]*20-s[4]*10)/5;
	s[6]=n%5;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",s[1],s[2],s[3],s[4],s[5],s[6]);
}
return 0;
}
int main()
{
	int money=0,a=0;
	cin>>money;
	a=money/100;
	cout<<a<<endl;
	money=money%100;
	a=money/50;
	cout<<a<<endl;
	money=money%50;
	a=money/20;
	cout<<a<<endl;
	money=money%20;
	a=money/10;
	cout<<a<<endl;
	money=money%10;
	a=money/5;
	cout<<a<<endl;
	money=money%5;
	cout<<money;
	return 0;
}
int main()
{
    int money;
    cin>>money;
    int num[6]={0};

    while(money>=100)
    {
        money=money-100;
        num[0]=num[0]+1;
    }
    while(money>=50)
    {
        money=money-50;
        num[1]=num[1]+1;
    }
    while(money>=20)
    {
        money=money-20;
        num[2]=num[2]+1;
    }
    while(money>=10)
    {
        money=money-10;
        num[3]=num[3]+1;
    }
    while(money>=5)
    {
        money=money-5;
        num[4]=num[4]+1;
    }
    while(money>=1)
    {

        money=money-1;
        num[5]=num[5]+1;
    }
    int i;
    for(i=0;i<6;i++)
    {
        cout<<num[i]<<endl;
    }








    return 0;
}
int main()
{
	int sum;
	int p;
	cin>>sum;
	p=sum/100;
	cout<<p<<endl;
	sum=sum-100*p;
	p=sum/50;
	cout<<p<<endl;
	sum=sum-50*p;
	p=sum/20;
	cout<<p<<endl;
	sum=sum-20*p;
	p=sum/10;
	cout<<p<<endl;
	sum=sum-10*p;
	p=sum/5;
	cout<<p<<endl;
	sum=sum-5*p;
	p=sum/1;
	cout<<p<<endl;
	return 0;

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



	
	
	



	return 0;

}
int main()
{
	int a=0,b=0,c=0,d=0,e=0,f=0,n=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-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 a,a1,a2,a3,a4,a5,a6,ss[20];
	int count100=0,count50=0,count20=0,count10=0,count5=0,count1=0;
	scanf("%d",&a);
	a1=a2=a3=a4=a5=a6=a;
	while(a>=100) {
		a=a-100;
		count100++;
	}
	while(a>=50) {
		a=a-50;
		count50++;
	}
	while(a>=20) {
		a=a-20;
		count20++;
	}
	while(a>=10) {
		a=a-10;
		count10++;
	}
	while(a>=5) {
		a=a-5;
		count5++;
	}while(a>=1) {
		a=a-1;
		count1++;
	}
	printf("%d\n%d\n%d\n%d\n%d\n%d",count100,count50,count20,count10,count5,count1);
	return 0;
}
int main() {
int a,b,c,d,e,f;
int x,i,j;
scanf("%d",&x);
a=x/100;
i=x%100;
if (i>=50) {
   b=1;
   i=i-50;
} else {
  b=0;
}
j=i/10;
if (j==0) {
   c=0;
   d=0;
}
if (j==1) {
   c=0;
   d=1;
} 
if (j==2) {
   c=1;
   d=0;
}
if (j==3) {
   c=1;
   d=1;
}
if (j==4) {
   c=2;
   d=0;
}
j=i%10;
if (j>=5) {
   e=1;
   f=j-5;
} else {
  e=0;
  f=j;
}
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, a[6]={0}, m;
	scanf("%d", &m);
	while(m/100>0)
	{
		a[0]++;
		m -= 100;
	}
	while(m/50>0)
	{
		a[1]++;
		m -= 50;
	}
	while(m/20>0)
	{
		a[2]++;
		m -= 20;
	}
	while(m/10>0)
	{
		a[3]++;
		m -= 10;
	}
	while(m/5>0)
	{
		a[4]++;
		m -= 5;
	}
	a[5] = m;
	for(i=0;i<6;i++)
	{
		printf("%d\n", a[i]);
	}
	return 0;
}
int main()
{
int n,a,b,c,d,e;
scanf("%d",&n);
a=n%100;
b=a%50;
c=b%20;
d=c%10;
e=d%5;
printf("%d\n%d\n%d\n%d\n%d\n%d\n",n/100,a/50,b/20,c/10,d/5,e);

return 0;
 }
int main()
{
int m,n100,n50,n20,n10,n5,n1;
scanf("%d",&m);
for(n100=0;m-100*n100>=0;n100++);
n100=n100-1;
m=m-100*n100;
for(n50=0;m-50*n50>=0;n50++);
n50=n50-1;
m=m-50*n50;
for(n20=0;m-20*n20>=0;n20++); 
n20=n20-1;
m=m-20*n20;
for(n10=0;m-10*n10>=0;n10++);
n10=n10-1;
m=m-10*n10;
for(n5=0;m-5*n5>=0;n5++); 
n5=n5-1;
m=m-5*n5;
for(n1=0;m-1*n1>=0;n1++);
n1=n1-1;
m=m-1*n1;
printf("%d\n%d\n%d\n%d\n%d\n%d\n",n100,n50,n20,n10,n5,n1);
}
int main(){
	int n;
	scanf("%d",&n);
	int a=n/100;
	int b=(n%100)/50;
	int c=(n%50)/20;
	int d=(n%50-20*c)/10;
	int e=(n%10)/5;
	int 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 bill, count = 0;
	cin >> bill;
	while (bill > 0)
	{
		cout << bill / 100 << endl;
		bill -= bill / 100 * 100;
		cout << bill / 50 << endl;
		bill -= bill / 50 * 50;
		cout << bill / 20 << endl;
		bill -= bill / 20 * 20;
		cout << bill / 10 << endl;
		bill -= bill / 10 * 10;
		cout << bill / 5 << endl;
		bill -= bill / 5  * 5 ;
		cout << bill  << endl;
		bill -= bill;
	}
	return 0;
}
int main()
{int n,i;
scanf("%d",&n);
for(i=0;n>=100;i++)
{n=n-100;}
  printf("%d\n",i);
for(i=0;n>=50;i++)
{n=n-50;}
  printf("%d\n",i);
for(i=0;n>=20;i++)
{n=n-20;}
  printf("%d\n",i);
for(i=0;n>=10;i++)
{n=n-10;}
  printf("%d\n",i);
for(i=0;n>=5;i++)
{n=n-5;}
  printf("%d\n",i);
  printf("%d\n",n);

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

	a=n%100;
	if(a>=50){
		printf("%d\n",a/50);
		a=a%50;
	}
	else{
		printf("0\n");
	}
    if(a>=20){
		printf("%d\n",a/20);
		a=a%20;
	}
	else{
		printf("0\n");
	}
	if(a>=10){
		printf("%d\n",a/10);
		a=a%10;
	}
	else{
		printf("0\n");
	}
	if(a>=5){
		printf("%d\n",a/5);
		a=a%5;
	}
	else{
		printf("0\n");
	}
	if(a<=4){
		printf("%d\n",a);
		
	}
	else{
		printf("0");
	}

    
		


	return 0; 
}
int main()
{
    int n;//?????n 
    cin>>n;//??n 
    int a1,b1,c1,d1,e1;//?????? 
    int a2,b2,c2,d2,e2,f2;//?????? 
    a1=n%100;
    a2=(n-a1)/100;//????100??????? 
    cout<<a2<<endl;
    b1=a1%50;
    b2=(a1-b1)/50;
    cout<<b2<<endl;
    c1=b1%20;
    c2=(b1-c1)/20;
    cout<<c2<<endl;
    d1=c1%10;
    d2=(c1-d1)/10;
    cout<<d2<<endl;
    e1=d1%5;
    e2=(d1-e1)/5;
    cout<<e2<<endl;
    f2=e1;
    cout<<f2<<endl;
    return 0;
}
int main()
{
   int sum;
   cin>>sum;
  
      if(sum>=100)
	  {
		  cout<<sum/100<<endl;
		  sum=sum-100*(sum/100);
	  }
	  else cout<<0<<endl;
	  if(sum>=50)
	  {
	      cout<<sum/50<<endl;
		  sum=sum-50*(sum/50);
	  }
	  else cout<<0<<endl;
	  if(sum>=20)
	  {
	     cout<<sum/20<<endl;
		 sum=sum-20*(sum/20);
	  }
	  else cout<<0<<endl;
	  if(sum>=10)
	  {
	     cout<<sum/10<<endl;
         sum=sum-10*(sum/10);
	  }
	  else cout<<0<<endl;
	  if(sum>=5)
	  {
	     cout<<sum/5<<endl;
		 sum=sum-5*(sum/5);
	  }
	  else cout<<0<<endl;
	  cout<<sum;
	  
   
   return 0;
}
int main()
{
	int money;
	scanf("%d",&money);
	int a,b,c,d,e,f;
	a=money/100;
	b=money%100/50;
	c=money%50/20;
	d=(money%50-c*20)/10;
	e=money%10/5;
	f=money%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\n",f);
}
int main()
{
int a,b;
scanf("%d",&a);
b=a/100;
printf("%d\n",b);
a=a-a/100*100;
b=a/50;
printf("%d\n",(b));
a=a-a/50*50;
b=a/20;
printf("%d\n",b);
a=a-a/20*20;
b=a/10;
printf("%d\n",b);
a=a-a/10*10;
b=a/5;
printf("%d\n",b);
a=a-a/5*5;
printf("%d\n",a);
return 0;
}
int main()
{
	int x,a,b,c,d,e,f,n;
	a=0;
	b=0;
	c=0;
	d=0;
	e=0;
	f=0;
	scanf("%d",&x);
    if(x%10<5)
	{
		f=x%10;
	}
	else
	{
		e=1;
		f=x%10-5;
	}
	if(x>100)
	{
		a=x/100;
	}
	if(x>10)
	{
		n=(x/10)%10;
		if(n-5>=0)
		{
			b=1;
			if((n-5)%2==0)
			{
				c=(n-5)/2;
			}
			else
			{
				d=1;
				c=(n-5-d)/2;
			}
		}
		else if(n%2==0)
		{
			c=n/2;
		}
		else
		{
			d=1;
			c=(n-d)/2;
		}
	}
	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,bai=0,wushi=0,ershi=0,shi=0,wu=0,yi=0;
	scanf("%d",&n);
	bai=n/100;
	n=n%100;
	wushi=n/50;
	n=n%50;
	while (n>=20)
	{
		ershi+=1;
		n=n-20;
	}
	if (n>=10){
	shi=n/10;
	n=n-10;}
	if (n>=5)
	{
		wu=1;
		n=n-5;
	}
	yi=n;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",bai,wushi,ershi,shi,wu,yi);
	return 0;
}
int main(){
	int x;
	scanf("%d",&x);
	int a[7]={0,100,50,20,10,5,1};
	int b[7]={0};
	int i;
	for(i=1;i<7;i++){
		x=x-a[i-1]*b[i-1];
		b[i]=x/a[i];
	}
	for(i=1;i<7;i++)
		printf("%d\n",b[i]);
	return 0;
}
void main()
{
	int n,a,b,c,d,e,f;
	scanf("%d",&n);
	for(a=0;n>=100;a++)
		n=n-100;
	for(b=0;n>=50;b++)
		n=n-50;
    for(c=0;n>=20;c++)
		n=n-20;
	for(d=0;n>=10;d++)
		n=n-10;
	for(e=0;n>=5;e++)
		n=n-5;
	f=n;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
}
int main(){
	int n;
	scanf("%d",&n);
	int s1=n/100;
	n=n%100;
	int	s2=n/50;
	n=n%50;
	int	s3=n/20;
	n=n%20;
	int	s4=n/10;
	n=n%10;
	int	s5=n/5;
	n=n%5;
	int	s6=n;
	printf("%d\n",s1);
	printf("%d\n",s2);
	printf("%d\n",s3);
	printf("%d\n",s4);
	printf("%d\n",s5);
	printf("%d",s6);

	return 0;
}
int main(int argc, char* argv[])
{
	int n,a,b,c,d,e,f,n1,n2,n3,n4,n5;
	scanf("%d",&n);
	a = (n-n%100)/100;
	n1=n-a*100;
	b = (n1-n1%50)/50;
	n2=n1-b*50;
	c = (n2-n2%20)/20;
	n3=n2-c*20;
	d = (n3-n3%10)/10;
	n4=n3-d*10;
	e = (n4-n4%5)/5;
	n5=n4-e*5;
	f = n5;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);



	return 0;
}
main()
{
int i,n,m,j,k;
int A[100];
int P1=0,P2=0,P3=0,P4=0,P5=0,P6=0;

scanf("%d",&n);

P1=n/100;n=n-(P1*100);
P2=n/50;n=n-(P2*50);
P3=n/20;n=n-(P3*20);
P4=n/10;n=n-10*P4;
P5=n/5;n=n-5*P5;
P6=n;


printf("%d\n%d\n%d\n%d\n%d\n%d",P1,P2,P3,P4,P5,P6);










/*for(i=0;i<n;i++)
{
	scanf("%d",&A[i]);
}

for(i=0;i<n;i++)
{
	if(A[i]<=18) P1++;
	if((A[i]>=19)&&(A[i]<=35)) P2++;
	if((A[i]>=36)&&(A[i]<=60)) P3++;
	if(A[i]>=61) P4++;
}

printf("1-18: %.2lf%%\n19-35: %.2lf%%\n36-60: %.2lf%%\n60??: %.2lf%%\n",
(double)100*P1/n,(double)100*P2/n,(double)100*P3/n,(double)100*P4/n);
*/
return 0;
}
int main(int argc, char* argv[])
{
    int m;
	scanf("%d",&m);
    int a,b,c,d,e,f,g,h,i,j;
	a=m/100;
	printf("%d\n",a);
	b=m-a*100;
	if(b<50)
    {c=0;
	printf("%d\n",c);
    d=b/20;
    printf("%d\n",d);
    e=b-d*20;
	f=e/10;
	printf("%d\n",f);
	g=e-f*10;
	h=g/5;
	printf("%d\n",h);
	i=g-h*5;
	j=i/1;
	printf("%d\n",j);
    }
	else
	{
    c=1;
	printf("%d\n",c);
    d=(b-50)/20;
    printf("%d\n",d);
    e=b-50-d*20;
	f=e/10;
	printf("%d\n",f);
	g=e-f*10;
	h=g/5;
	printf("%d\n",h);
	i=g-h*5;
	j=i/1;
	printf("%d\n",j);
    }
    //printf("Hello World!\n");
	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);
   a=n/100;
   b=(n-a*100)/50;
   c=(n-a*100-b*50)/20;
   d=(n-a*100-b*50-c*20)/10;
   e=(n-a*100-b*50-c*20-d*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\n",f);

	return 0;
}
int main(int argc, char* argv[])
{
	int n,a,b,c,d,e,f;
	scanf("%d",&n);
	a=(int)n/100;
     b=(int)(n-a*100)/50;
	 c=(int)(n-a*100-b*50)/20;
	 d=(int)(n-a*100-b*50-c*20)/10;
	 e=(int)(n-a*100-b*50-c*20-d*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\n",f);
	return 0;
}
int main(){
	int n;
	int a,b,c,d,e,f;
	scanf("%d",&n);
	a=n/100;
	b=(n-a*100)/50;
	c=(n-a*100-b*50)/20;
	d=(n-a*100-b*50-c*20)/10;
	e=(n-a*100-b*50-c*20-d*10)/5;
	f=n-a*100-b*50-c*20-d*10-e*5;


	printf("%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
	if(f==0){
		printf("0");
	}else{
		printf("%d",f);
	}
	return 0;
}
void main(){
	int n;
	scanf("%d",&n);
	printf("%d\n",n/100);
	n-=100*(n/100);
	printf("%d\n",n/50);
	n-=50*(n/50);
    printf("%d\n",n/20);
	n-=20*(n/20);
    printf("%d\n",n/10);
	n-=10*(n/10);
    printf("%d\n",n/5);
	n-=5*(n/5);
    printf("%d\n",n);
}
int main()
{
	int n,i,j;
	int a[6]={100,50,20,10,5,1},s[6]={0};
	scanf("%d",&n);
	for(i=0;i<60;i++)
	{
		for(j=0;j<10;j++)
		{
			if(n-a[i]>=0)
			{
				n=n-a[i];
				s[i]+=1;
			}
		}
	}
	for(i=0;i<6;i++)
	{
		printf("%d\n",s[i]);
	}
	return 0;
}
int main()
{
    int n,a,b;
	int s[7]={0};
	scanf("%d", &n);
	b=n/100;
	printf("%d\n", b);
	a=(b==0) ? n:(n%100);
	b=a/50;
	printf("%d\n", b);
	a=(b==0) ? a:(a%50);
	b=a/20;
	printf("%d\n", b);
	a=(b==0) ? a:(a%20);
	b=a/10;
	printf("%d\n", b);
	a=(b==0) ? a:(a%10);
	b=a/5;
	printf("%d\n", b);
	a=(b==0) ? a:(a%5);
	printf("%d\n", a);
	return 0;
}
int main()
{
	int j=0,k=0,l=0,m=0,n,p=0,q=0;
	scanf("%d",&n);
	while(n-100>=0)
	{
		n=n-100;
		j++;
	}
	while(n-50>=0)
	{
		n=n-50;
		k++;
	}
	while(n-20>=0)
	{
		n=n-20;
		l++;
	}
	while(n-10>=0)
	{
		n=n-10;
		m++;
	}
	while(n-5>=0)
	{
		n=n-5;
		q++;
	}
	while(n-1>=0)
	{
		n=n-1;
		p++;
	}
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",j,k,l,m,q,p);
	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;
    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;
    }
    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;
	int bai,wushi,ershi,shi,wu,yuan;
	scanf("%d",&n);
	bai=(n-n%100)/100;
	printf("%d\n",bai);
	wushi=((n-100*bai)-(n-100*bai)%50)/50;
	printf("%d\n",wushi);
	ershi=((n-100*bai-50*wushi)-(n-100*bai-50*wushi)%20)/20;
	printf("%d\n",ershi);
	shi=((n-100*bai-50*wushi-20*ershi)-(n-100*bai-50*wushi-20*ershi)%10)/10;
	printf("%d\n",shi);
	wu=((n-100*bai-50*wushi-20*ershi-10*shi)-(n-100*bai-50*wushi-20*ershi-10*shi)%5)/5;
	printf("%d\n",wu);
	yuan=n-100*bai-50*wushi-20*ershi-10*shi-5*wu;
	printf("%d\n",yuan);
	return 0;
}