semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int n,i,j,sum1=0,sum2=0,sum3=0,sum4=0,sum5=0,sum6=0;
	scanf("%d",&n);
	while(n!=0)
	{
		if(n-100>=0)
		{	
			sum1++;
		    n=n-100;
		}
		else if(n-50>=0 && n-50<50)
		{
			sum2++;
		    n=n-50;
		}
		else if(n-20>=0 && n-20<30)
		{
			sum3++;
		    n=n-20;
		}
		else if(n-10>=0 && n-10<10)
		{
			sum4++;
		    n=n-10;
		}
		else if(n-5>=0 && n-5<5)
		{
			sum5++;
		    n=n-5;
		}
		else if(n-1>=0 && n-1<4)
		{
			sum6++;
		    n=n-1;
		}
	}
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",sum1,sum2,sum3,sum4,sum5,sum6);
	return 0;
}
int main(){
	int n;
	int a,b,c,d,e,f;
	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;
	n=n%5;
	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 m,a,b,c,d,e,f;
scanf ("%d",&m);
int i=1;
if(i<=m){
i++;
a=m/100;
b=(m-100*a)/50;
c=(m-100*a-50*b)/20;
d=(m-100*a-50*b-20*c)/10;
e=(m-100*a-50*b-20*c-10*d)/5;
f=m-100*a-50*b-20*c-10*d-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 deno[6] = {100,50,20,10,5,1};
    int money;
    scanf("%d",&money);
    int count[6];
    for (int i=0;i<6;++i) count[i] = 0;
    while (money!=0)
    {
        for (int i=0;i<6;++i)
        {
            if (money>=deno[i])
            {
                money -= deno[i];
                count[i]++;
                break;                   
            }    
        }              
    }
    for (int i=0;i<6;++i)
    {
        printf("%d\n",count[i]);    
    }        
    return 0;
}
int main(){

	int num;
	scanf("%d",&num);
	int m100,m50,m20,m10,m5,m1,sz[50];

	m100=num/100;
	sz[0]=num%100;
	m50=sz[0]/50;
	sz[1]=sz[0]%50;
	m20=sz[1]/20;
	sz[2]=sz[1]%20;
	m10=sz[2]/10;
	sz[3]=sz[2]%10;
	m5=sz[3]/5;
	sz[4]=sz[3]%5;
	m1=sz[4];
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",m100,m50,m20,m10,m5,m1);
	return 0;
}
/*

?? 
??????????????????345?????????????????????????100??50??20??10??5??1???????????????????
 
???? 
????1000?????
 
???? 
??????????????????????100??50??20??10??5??1???????
 
???? 
735
 
???? 
7
0
1
1
1
0


*/


int main()
{
	int i,n,count=0;
	cin>>n;
	while(n-100>=0)
	{
		n-=100;
		count++;
	}
	cout<<count<<endl;
	count=0;
	while(n-50>=0)
	{
		n-=50;
		count++;
	}
	cout<<count<<endl;
	count=0;
	while(n-20>=0)
	{
		n-=20;
		count++;
	}
	cout<<count<<endl;
	count=0;
	while(n-10>=0)
	{
		n-=10;
		count++;
	}
	cout<<count<<endl;
	count=0;
	while(n-5>=0)
	{
		n-=5;
		count++;
	}
	cout<<count<<endl;
	count=0;
	while(n-1>=0)
	{
		n-=1;
		count++;
	}
	cout<<count<<endl;
	return 0;
}
int main()
{
    int n,a,b,c,d,e,f;
    scanf("%d",&n);
    printf("%d\n",n/100);
    a=n%100;
    printf("%d\n",a/50);
    b=a%50;
    printf("%d\n",b/20);
    c=b%20;
    printf("%d\n",c/10);
    d=c%10;
    printf("%d\n",d/5);
    e=d%5;
    printf("%d\n",e/1);
    return 0;
}
int main(int argc, char* argv[])
{
	int m,a[6],i;
	scanf("%d",&m);
	a[0]=m/100;
	m-=100*a[0];
	a[1]=m/50;
    m-=50*a[1];
	a[2]=m/20;
	m-=20*a[2];
	a[3]=m/10;
    m-=10*a[3];
	a[4]=m/5;
	m-=5*a[4];
	a[5]=m/1;
    for(i=0;i<6;i++)
	{
		printf("%d\n",a[i]);
	}
	return 0;
}
int main(){
    int a,b,c,d,e,f,g,h,i,j,k;
    scanf("%d",&a);
    b=a%100;
    c=b%50;
    d=c%20;
    e=d%10;
    f=e%5;
    g=(a-b)/100;
    h=(b-c)/50;
    i=(c-d)/20;
    j=(d-e)/10;
    k=(e-f)/5;
    printf("%d\n%d\n%d\n%d\n%d\n%d\n",g,h,i,j,k,f);
    return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	if(n>=100) printf("%d\n",n/100);
	else printf("0\n");
	n=n-(n/100)*100;
	if(n>=50) printf("%d\n",n/50);
	else printf("0\n");
	n=n-(n/50)*50;
	if(n>=20) printf("%d\n",n/20);
	else printf("0\n");
	n=n-(n/20)*20;
	if(n>=10) printf("%d\n",n/10);
	else printf("0\n");
	n=n-(n/10)*10;
	if(n>=5) printf("%d\n",n/5);
	else printf("0\n");
	n=n-(n/5)*5;
	printf("%d\n",n);
	return 0;
}
int main ()
{
	int n,a[6];
	scanf("%d",&n);
	a[0]=(n-n%100)/100;
	n=n-a[0]*100;
	a[1]=(n-n%50)/50;
	n=n-50*a[1];
	a[2]=(n-n%20)/20;
	n=n-20*a[2];
	a[3]=(n-n%10)/10;
	n=n-a[3]*10;
	a[4]=(n-n%5)/5;
	n=n-a[4]*5;
	a[5]=n;
	int i;
	for(i=0;i<6;i++)
	{
		printf("%d\n",a[i]);
	}
	return 0;
}
int main(int argc, char* argv[])
{
	int m,a=0,b=0,c=0,d=0,e=0,f=0;
	scanf("%d",&m);
     while (m>=100)
	 {
		 a++;
		 m-=100;
	 }
	 while(m>=50&&m<100)
	 {
		 b++;
		 m-=50;
	 }
	 while(m>=20&&m<50)
	 {
		 c++;
		 m-=20;
	 }
	 while (m>10&&m<20)
	 {
		 d++;
		 m-=10;
	 }
	 while (m<=10&&m>=5)
	 {
		 e++;
		 m-=5;
	 }
	 while(m<5&&m>0)
	 {
		 f++;
		 m-=1;
	 }
	 printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
	 return 0;
}
/*
 * ??????????
 * ?????2011-11-6
 * ?????
 * ???????????
 */
int main()
{
	int money,a=0,b=0,c=0,d=0,e=0,f=0;   //????            
	cin>>money;                          //?????
	while(money>=100)                    //????????????
		{money=money-100;
		a++;
		}
	while(money>=50)
		{money=money-50;
		b++;
		}
	while(money>=20)
		{money=money-20;
		c++;
		}
	while(money>=10)
		{money=money-10;
		d++;
		}
	while(money>=5)
		{money=money-5;
		e++;
		}
	while(money>=1)
			{money=money-1;
			f++;
			}
	cout<<a<<endl;                        //????
	cout<<b<<endl;
	cout<<c<<endl;
	cout<<d<<endl;
	cout<<e<<endl;
	cout<<f<<endl;
	return 0;
}
int main(){
  int a,n1,n2,n3,n4,n5,n6,b,c;
  scanf("%d",&a);
  n1=a/100;
  b=(a%100)/10;
    if(b>=5){
       n2=1;
       n3=(b-5)/2;
       n4=(b-5)%2;
    }else{
       n2=0;
       n3=b/2;
       n4=b%2;
    }
    c=a%10;
    n5=c/5;
    n6=c%5;
  printf("%d\n%d\n%d\n%d\n%d\n%d\n",n1,n2,n3,n4,n5,n6);
  return 0;
}
int main()
{
	int x,a,b,c,d,e,f;
	scanf("%d",&x);
    a=(int)ceil(x/100);
	b=(int)ceil((x-a*100)/50);
	c=(int)ceil((x-a*100-b*50)/20);
	d=(int)ceil((x-a*100-b*50-c*20)/10);
	e=(int)ceil((x-a*100-b*50-c*20-d*10)/5);
	f=(int)ceil((x-a*100-b*50-c*20-d*10-e*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,l;
    scanf("%d",&n);
    int a;
    a=(int)n/100;
    printf("%d\n",a);
    l=n-a*100;
    int b;
    b=(int)l/50;
    printf("%d\n",b);
    l=l-b*50;
    int c;
    c=(int)l/20;
    printf("%d\n",c);
    l=l-c*20;
    int d;
    d=(int)l/10;
    printf("%d\n",d);
    l=l-d*10;
    int e;
    e=(int)l/5;
    printf("%d\n",e);
    l=l-5*e;
    int f;
    f=(int)l/1;
    printf("%d\n",f);
    return 0;
}
int main()
{
	int sum,i=1,a[7]={0};
	cin>>sum;
	a[1]=sum/100;
	a[2]=(sum-a[1]*100)/50;
	a[3]=(sum-a[2]*50-a[1]*100)/20;
	a[4]=(sum-a[3]*20-a[2]*50-a[1]*100)/10;
	a[5]=(sum-a[4]*10-a[3]*20-a[2]*50-a[1]*100)/5;
	a[6]=(sum%5);
	for(i=1;i<=6;i++)
		cout<<a[i]<<endl;
	return 0;
}
int main()
{
    int a;
    int q;
    int sz[6]={100,50,20,10,5,1};
    scanf("%d",&a);
    for(int i=0;i<=5;i++){
        q=a/sz[i];
    printf("%d\n",q);
        a=a-sz[i]*q;
    }
    return 0;
    
}
void main()
{
	int a,b,c,d,e,f;
	scanf("%d",&a);
	b=a%100;
	b=(a-b)/100;a=a-100*b;printf("%d\n",b);
	c=a%50;
	c=(a-c)/50;a=a-50*c;printf("%d\n",c);
	d=a%20;
	d=(a-d)/20;a=a-20*d;printf("%d\n",d);
	e=a%10;
	e=(a-e)/10;a=a-10*e;printf("%d\n",e);
	f=a%5;
	f=(a-f)/5;a=a-5*f;printf("%d\n",f);
	printf("%d\n",a);
}
int main()
{
	int x,a,i;
	scanf("%d",&x);
	for(i=0;i<6;i++)
	{
		switch(i)
		{
		case 0:
			a=x/100;
			x=x%100;
			printf("%d\n",a);
			break;
		case 1:
			a=x/50;
			x=x%50;
			printf("%d\n",a);
			break;
		case 2:
			a=x/20;
			x=x%20;
			printf("%d\n",a);
			break;
	    case 3:
			a=x/10;
			x=x%10;
			printf("%d\n",a);
			break;
		case 4:
			a=x/5;
			x=x%5;
			printf("%d\n",a);
			break;
		default:
			{a=x/1;
			x=x%1;
			printf("%d\n",a);
			break;}
		}
	}
	return 0;
}
int main(){
int n;
scanf("%d",&n);
printf("%d\n",n/100);
n=n-n/100*100;
if (n>=50){
printf("%d\n",n/50);
n=n-n/50*50;
}else{
printf("0\n");
}
if (n>=20){
printf("%d\n",n/20);
n=n-n/20*20;
}else{
printf("0\n");
}
if(n>=10){
printf("%d\n",n/10);
n=n-n/10*10;
}else{
printf("0\n");
}
if(n>=5){
printf("%d\n",n/5);
n=n-n/5*5;
}else{
printf("0\n");
}
printf("%d\n",n);
return 0;
}
int main()
{
    int a,b,c,i,e,f,k,x,y,n;
    scanf("%d",&n);
    a=n/100;
    b=n%10;
    n=n/10;
    c=n%10;
    switch(c)
    {
     case 0:e=0;f=0;k=0;break;
     case 1:e=1;f=0;k=0;break;
     case 2:e=0;f=1;k=0;break;
     case 3:e=1;f=1;k=0;break;
     case 4:e=0;f=2;k=0;break;
     case 5:e=0;f=0;k=1;break;
     case 6:e=1;f=0;k=1;break;
     case 7:e=0;f=1;k=1;break;
     case 8:e=1;f=1;k=1;break;
     case 9:e=0;f=2;k=1;break;
     }
     if(b>=5)
     {
       x=b%5;
       y=1;
       }
     else
     {
     x=b%5;
     y=0;
     }
     printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,k,f,e,y,x);
     return 0;
}
int main(int argc, char* argv[])
{
	int n;
	scanf("%d",&n);
	int num1=n/100;printf("%d\n",num1);
	n-=num1*100;
    int num2=n/50;printf("%d\n",num2);
	n-=num2*50;
	int num3=n/20;printf("%d\n",num3);
	n-=num3*20;
	int num4=n/10;printf("%d\n",num4);
	n-=num4*10;
	int num5=n/5;printf("%d\n",num5);
	n-=num5*5;
	int num6=n;printf("%d\n",num6);

	return 0;
}
int main()
{
	int n,a1,a2,a3,a4,a5,a6;
	cin>>n;
	a1=n/100;
	n=n%100;
	a2=n/50;
	n=n%50;
	a3=n/20;
	n=n%20;
	a4=n/10;
	n=n%10;
	a5=n/5;
	n=n%5;
	a6=n;
	cout<<a1<<endl<<a2<<endl<<a3<<endl<<a4<<endl<<a5<<endl<<a6<<endl;
	return 0;
}
int main ()
{
	int n,b,ws,e,s,w,y;
	scanf("%d",&n);
	b=(n-n%100)/100;
	n=n-b*100;
	ws=(n-n%50)/50;
	n=n-50*ws;
	e=(n-n%20)/20;
	n=n-20*e;
	s=(n-n%10)/10;
	n=n-10*s;
	w=(n-n%5)/5;
	y=n-5*w;
	printf("%d\n",b);
	printf("%d\n",ws);
	printf("%d\n",e);
	printf("%d\n",s);
	printf("%d\n",w);
	printf("%d\n",y);
	

	return 0;
}
int main()
{
	int n;
	cin>>n;
	int zz[6]={100,50,20,10,5,1};
	int z[6];
	z[0]=n / zz[0];
	n -= z[0]*zz[0];
	z[1]=n / zz[1];
	n -= z[1]*zz[1];
	z[2]=n / zz[2];
	n -= z[2]*zz[2];
	z[3]=n / zz[3];
	n -= z[3]*zz[3];
	z[4]=n / zz[4];
	n -= z[4]*zz[4];
	z[5]=n / zz[5];
	for ( int i = 0 ; i < 6; i ++ )
		cout<<z[i]<<endl;
}
int main()
{
	int n;
	scanf("%d",&n);
	printf("%d\n",n/100);
	n%=100;
	if(n>=50){
		printf("1\n");
		n-=50;
	}
	else printf("0\n");
	printf("%d\n",n/20);
	n-=20*(n/20);
	if(n>=10){
		printf("1\n");
		n-=10;
	}
	else printf("0\n");
	if(n>=5){
		printf("1\n");
		n-=5;
	}
	else printf("0\n");
	printf("%d\n",n);
	return 0;
}
int main()
{
	int money,num100,num50,num20,num10,num5,num1;
	cin>>money;
	if(money/100>0)
	{
		num100=money/100;
		money=money-100*num100;
		cout<<num100<<endl;
	}
	else
		cout<<"0"<<endl;
    if(money/50>0)
	{
		num50=money/50;
		money=money-50*num50;
		cout<<num50<<endl;
	}
    else
		cout<<"0"<<endl;

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

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


return 0;
}
int main(int argc, char* argv[])
{
    int n, a, b, c, d, e, f;
	scanf("%d",&n);
	a=(int)(n/100);
	n-=a*100;
	b=(int)(n/50);
	n-=b*50;
	c=(int)(n/20);
	n-=c*20;
	d=(int)(n/10);
	n-=d*10;
	e=(int)(n/5);
	n-=e*5;
	f=n;
	printf("%d\n%d\n%d\n%d\n%d\n%d",a, b, c, d, e, f);
	return 0;
}
int main()
{
  int yibai=0;
  int wushi=0;
  int ershi=0;
  int shi=0;
  int wu=0;
  int yi=0;
  int money=0;
  int leftmoney=0;

  scanf("%d", &money);
  leftmoney = money;
  for ( ; ; )
  {
    if (leftmoney>=0)
	{
		leftmoney -= 100;
	    ++yibai;
	}		
	else
    {
	  if (yibai==0);
	  else --yibai;
	  break;
	}

  }
  leftmoney += 100;
  for ( ; ; )
  {
    if (leftmoney>=0)
	{
		leftmoney -= 50;
	    ++wushi;
	}		
	else
    {
	  if (wushi==0);
	  else --wushi;
	  break;
	}
  }
  leftmoney += 50;
  for ( ; ; )
  {
    if (leftmoney>=0)
	{
		leftmoney -= 20;
	    ++ershi;
	}		
	else
    {
	  if (ershi==0);
	  else --ershi;
	  break;
	}
  }
  leftmoney += 20;

  for ( ; ; )
  {
    if (leftmoney>=0)
	{
		leftmoney -= 10;
	    ++shi;
	}		
	else
    {
	  if (shi==0);
	  else --shi;
	  break;
	}
  }
  leftmoney += 10;
  for ( ; ; )
  {
    if (leftmoney>=0)
	{
		leftmoney -= 5;
	    ++wu;
	}		
	else
    {
	  if (wu==0);
	  else --wu;
	  break;
	}
  }
   leftmoney+=5;
  for ( ; ; )
  {
    if (leftmoney>=0)
	{
		leftmoney -= 1;
	    ++yi;
	}		
	else
    {
	  if (yi==0);
	  else --yi;
	  break;
	}
  }

  printf("%d\n%d\n%d\n%d\n%d\n%d\n", yibai, wushi, ershi, shi, wu, yi);

  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-20*c)/10;
  e=(n-100*a-50*b-20*c-10*d)/5;
  if(e==0){
  f=(n-100*a-50*b-20*c-10*d-5*d);
  }
  else 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 i,j,k,l,m,n;
 float num;
 scanf("%f",&num);
 i=(int)(num/100);
 num=num-i*100;
 j=(int)(num/50);
 num=num-j*50;
 k=(int)(num/20);
 num=num-k*20;
 l=(int)(num/10);
 num=num-l*10;
 m=(int)(num/5);
 num=num-m*5;
 n=(int)(num);
 num=num-n;
 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;
	int a100=0,a50=0,a20=0,a10=0,a5=0,a1=0;
	scanf("%d",&n);
	for(;n!=0;)
	{
		if(n>=100)
		{
			a100+=1;
			n-=100;
		}
		if(n<100&&n>=50)
		{
			a50+=1;
			n-=50;
		}
		if(n<50&&n>=20)
		{
			a20+=1;
			n-=20;
		}
		if(n<20&&n>=10)
		{
			a10+=1;
			n-=10;
		}
		if(n<10&&n>=5)
		{
			a5+=1;
			n-=5;
		}
		if(n<5&&n>=1)
		{
			a1+=1;
			n-=1;
		}
	}
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a100,a50,a20,a10,a5,a1);
	return 0;
}
void main()
{
	int a,z,x,c,v,b,n,y,t;
	scanf("%d",&a);
    z=(a-a%100)/100;
	x=(a-100*z-(a-100*z)%50)/50;
	y=a-100*z-50*x;
	c=(y-y%20)/20;
	v=(y-20*c-(y-20*c)%10)/10;
	t=a%10;
	b=(t-t%5)/5;
	n=t-5*b;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",z,x,c,v,b,n);
}
void main()
{
	int number, a[6]={0};
	scanf("%d", &number);
	printf("%d\n", number/100);
	if(number/100 != 0)
		a[0]=number%100;
	else
		a[0]=number;
	printf("%d\n", a[0]/50);
	if(a[0]/50 != 0)
		a[1]=a[0]%50;
	else
		a[1]=a[0];
	printf("%d\n", a[1]/20);
	if(a[1]/20 != 0)
		a[2]=a[1]%20;
	else
		a[2]=a[1];
	printf("%d\n", a[2]/10);
	if(a[2]/10 != 0)
		a[3]=a[2]%10;
	else
		a[3]=a[2];
	printf("%d\n", a[3]/5);
	if(a[3]/5 != 0)
		a[4]=a[3]%5;
	else
		a[4]=a[3];
	printf("%d", a[4]/1);
}
int main()
{
	int n,hundred,fifty,twenty,ten,five,one;
	scanf("%d",&n);
	hundred=n/100,n=n%100;
	fifty=n/50,n=n%50;
	twenty=n/20,n=n%20;
	ten=n/10,n=n%10;
	five=n/5;n=n%5;
	one=n;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",hundred,fifty,twenty,ten,five,one);
	return 0;
}
int main(int argc, char* argv[])
{  
	int n,m,p;
	int hun,fif,twenty,ten,five,one;
	
	scanf("%d",&n);
    hun=n/100;
	n=n%100;

	if(n>=50){
		fif=1;
		m=n-50;
	}
	else if(n<50){
		fif=0;
		m=n;
	}
	twenty=m/20;
	m=m%20;
	if(m>=10){
		ten=1;
		p=m-10;
	}
	else if(m<10){
		ten=0;
		p=m;
	}
	if(p>=5){
		five=1;
		one=p-5;
	}
	else if(p<5){
		five=0;
		one=p;
	}

	printf("%d\n%d\n%d\n%d\n%d\n%d\n",hun,fif,twenty,ten,five,one);
	 
	return 0;
}
int main()
{
	int n,a,b,c,d,e,f;
	scanf("%d",&n);
    if(n>=1000||n<1)
		printf("error\n");
	else{
		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",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;
	scanf("%d",&n);
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",n/100,(n%100)/50,(n%50)/20,(n%50-((n%50)/20)*20)/10,(n%10)/5,n%5);
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	if(n>=100)
	{
		printf("%d\n",n/100);
		n=n%100;
	}
	else
		printf("0\n");
	if(n>=50)
	{
		printf("%d\n",n/50);
		n=n%50;
	}
	else
		printf("0\n");
	if(n>=20)
	{
		printf("%d\n",n/20);
		n=n%20;
	}
	else
		printf("0\n");
	if(n>=10)
	{
		printf("%d\n",n/10);
		n=n%10;
	}
	else
		printf("0\n");
	if(n>=5)
	{
		printf("%d\n",n/5);
		n=n%5;
	}
	else
		printf("0\n");
	printf("%d\n",n);
	return 0;
}
int main()
{
	int n;
	cin>>n;
	int result[6];
	int money[6]={100,50,20,10,5,1};
	for(int k=0;k!=6;k++)
	{
		result[k]=n/money[k];
		n-=n/money[k]*money[k];
	}
	for(int k=0;k!=6;k++)
		cout<<result[k]<<endl;
	return 0;
}
int main()
{ int m,c100=0,c50=0,c20=0,c10=0,c5=0,c1=0;
cin>>m;
if(m/100!=0)
{ c100=m/100;
   m=m%100;
}
if(m/50!=0)
{c50=m/50;
 m=m%50;
}
if(m/20!=0)
{c20=m/20;
m=m%20;
}
if(m/10!=0)
{c10=m/10;
m=m%10;
}
if(m/5!=0)
{c5=m/5;
 m=m%5;
}
if(m/1!=0)
{ c1=m;
}
cout<<c100<<endl<<c50<<endl<<c20<<endl<<c10<<endl<<c5<<endl<<c1<<endl;

return 0;
}
int main(){
int x,y,z,r,s,t,a,m,n,p,q;
scanf("%d",&a);
if(a>0&&a<1000){
x=a/100;
m=a%100;
y=m/50;
n=m%50;
z=n/20;
p=n%20;
r=p/10;
q=p%10;
s=q/5;
t=q%5;
printf("%d\n",x);
printf("%d\n",y);
printf("%d\n",z);
printf("%d\n",r);
printf("%d\n",s);
printf("%d",t);
}
return 0;
}
int main (){
 int m,bai,wushi,ershi,shi,wu,yi;
 int a,b,c,d,e,f;
 scanf("%d",&m);
 bai=m/100;
 printf("%d\n",bai);
 if(m%100>=50)wushi=1;
 else if(m%100<=50)wushi=0;
 printf("%d\n",wushi);
 if(m%50>=40)ershi=2;
 else if(m%50>=20&&m%50<40)ershi=1;
 else if(m%50<20)ershi=0;
 printf("%d\n",ershi);
 if(m-bai*100-wushi*50-20*ershi>9)shi=1;
 else if(m-bai*100-wushi*50-20*ershi<10)shi=0;
 printf("%d\n",shi);
 if(m%10>=5)wu=1;
 else if(m%10<5)wu=0;
 printf("%d\n",wu);
 yi=m%5;
 printf("%d\n",yi);
 return 0;
}
int main(){
    int n,a,b,c,d,e;
    cin>>n;
    a=n/100;
    n=n-(n/100)*100;
    cout<<a<<endl;
    b=n/50;
    n=n-(n/50)*50;
    cout<<b<<endl; 
    c=n/20;
    n=n-(n/20)*20;
    cout<<c<<endl;
    d=n/10;
    n=n-(n/10)*10;
    cout<<d<<endl;
    e=n/5;
    cout<<e<<endl;
    n=n-(n/5)*5;
    cout<<n<<endl;
    return 0;
}
int main(int argc, char* argv[])
{
	int  n, a=0, b, c=0, d=0, e=0, f=0;
	scanf("%d", &n);
	a=(int)n/100;
	f=n-a*100;
	printf("%d\n", a);
	b=f/10;
	if(b==0){
		printf("%d\n%d\n%d\n", 0, 0, 0);
	}
	else if(b/5==0){
		if(b%2==0){
			printf("%d\n%d\n%d\n", 0, b/2, 0);
		}
	
	    else{
		 printf("%d\n%d\n%d\n", 0, (int)b/2,1);
		}
	}

	if(b/5!=0){
		e=b-5;
		if(e%2==0) 	printf("%d\n%d\n%d\n", 1,  e/2, 0);
	    else{
		 printf("%d\n%d\n%d\n", 1, (int)e/2,1);
		}
	}


	c=n-100*a-10*b;
	if(c==0){
		printf("%d\n%d\n", 0,  0);
	}
	else if(c/5==0){
		printf("%d\n%d\n", 0,  c);
	}

	else{
	 d=c-5;
		printf("%d\n%d\n", 1, d);
	    
	}

	
	return 0;
}
int main()
{
	int n,a,b,c,d,e,f;
	a=0;b=0;c=0;d=0;e=0;f=0;
	cin>>n;
	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++;}
	while(n>=1){
		n-=1;
		f++;}
	cout<<a<<endl<<b<<endl<<c<<endl<<d<<endl<<e<<endl<<f<<endl;
return 0;
}
/*
 * 01.cpp
 *
 *  Created on: 2011-11-6
 *      Author: ???
 */

int main()                          //?????
{
	int n,a=0,b=0,c=0,d=0,e=0,f=0;        //????
	cin>>n;                           //????
	a=n/100;                          //??100????
	if(n%100!=0)
	{b=((n%100)/50);                  //50????
	if((n-100*a)%50!=0)
	{
		c=(((n-100*a-50*b)%50)/20);                 //20????
				if((n-100*a-50*b)%20!=0)
				{
					d=(((n-100*a-50*b)%20)/10);         //10???
					if((n-100*a-50*b-20*c)%10!=0)
						e=((n-a*100-50*b-20*c-10*d)%10)/5;            //5???
					{
					if((n-100*a-50*b-20*c-10*d)%5!=0)
						f=(((n-100*a-50*b-20*c-10*d-5*e)%5)/1);
				}
	}
	}}
	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=0,b=0,c=0,d=0,e=0,f=0,n1,n2,n3,n4,n5;
	cin>>n;
	n1=n%100;
	a=(n-n1)/100;
	n2=n1%50;
	b=(n1-n2)/50;
	n3=n2%20;
	c=(n2-n3)/20;
	n4=n3%10;
	d=(n3-n4)/10;
	n5=n4%5;
	e=(n4-n5)/5;
	f=n5;
	cout<<a<<endl<<b<<endl<<c<<endl<<d<<endl<<e<<endl<<f<<endl;
	return 0;
}
int main(){
	int money;
	scanf("%d",&money);
	int a=money/100;
	printf("%d\n",a);
	int b=(money-100*a)/50;
    printf("%d\n",b);
	int c=(money-100*a-50*b)/20;
	printf("%d\n",c);
	int d=(money-100*a-50*b-20*c)/10;
	printf("%d\n",d);
	int e=(money-100*a-50*b-20*c-10*d)/5;
    printf("%d\n",e);
    int f=money%5;
	printf("%d",f);
	return 0;
}
int main()
{
 int n;
 scanf("%d",&n);
 int bai,wushi,ershi,shi,wu,yi;
 int yu1,yu2,yu3,yu4,yu5;
 bai=(n-n%100)/100;

 yu1=n-bai*100;
 if(yu1>=50)
 {
  wushi=1;
 }
 else
 {
  wushi=0;
 }

 yu2=yu1-wushi*50;
 ershi=(yu2-yu2%20)/20;

 yu3=yu2-ershi*20;
 shi=(yu3-yu3%10)/10;

 yu4=yu3-shi*10;
 wu=(yu4-yu4%5)/5;

 yu5=yu4-wu*5;
 yi=yu5;

 printf("%d\n",bai);
 printf("%d\n",wushi);
 printf("%d\n",ershi);
 printf("%d\n",shi);
 printf("%d\n",wu);
 printf("%d\n",yi);
    return 0;
}
int main()
{
int sum,n100,n50,n20,n10,n5,n1;
//????
cin>>sum;
//?????
n100=sum/100;

sum=sum-n100*100;
n50=sum/50;

sum=sum-n50*50;
n20=sum/20;

sum=sum-n20*20;
n10=sum/10;

sum=sum-n10*10;
n5=sum/5;

sum=sum-n5*5;
n1=sum;
//????
cout<<n100<<endl<<n50<<endl<<n20<<endl<<n10<<endl<<n5<<endl<<n1<<endl;
//??
return 0;
}
int main ()
{
    int n=0;
    cin>>n;                         //???? 
    for (int i=0;i<10;i++)        
    {
        if (n>=100) n=n-100;        //??100??? ??????100???100????????100 
        else
        {
            cout<<i<<endl;
            break;
            
        }
    }
    for (int i=0;i<3;i++)
    {
        if (n>=50) n=n-50;         //??50?????? 
        else
        {
            cout<<i<<endl;
            break;
            
        }
    }
    for (int i=0;i<3;i++)
    {
        if (n>=20) n=n-20;        //??20???
        else
        {
            cout<<i<<endl;
            break;
            
        }
    }
    for (int i=0;i<3;i++)
    {
        if (n>=10) n=n-10;          //??10???
        else
        {
            cout<<i<<endl;
            break;
            
        }
    }
    for (int i=0;i<3;i++)
    {
        if (n>=5) n=n-5;           //??5???
        else
        {
            cout<<i<<endl;
            break;
            
        }
    }
    for (int i=0;i<10;i++)
    {
        if (n>=1) n=n-1;           //??1???
        else
        {
            cout<<i<<endl;
            break;
            
        }
    }

    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*b)/20;
    d=((n%100)-b*50-20*c)/10;
    e=((n%100)-b*50-c*20-d*10)/5;
    f=((n%100)-b*50-c*20-d*10-e*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,m,p,q,r,s;
	int a=0,b=0,c=0,d=0,e=0,f=0;
	scanf("%d",&n);
	while(n>=100)
	{
		n=n-100;
		a++;
	}
	m=n;
    while(m>=50)
	{
		m=m-50;
		b++;
	}
	p=m;
	while(p>=20)
	{
		p=p-20;
		c++;
	}
	q=p;
	while(q>=10)
	{
		q=q-10;
		d++;
	}
	r=q;
	while(r>=5)
	{
		r=r-5;
		e++;
	}
	s=r;
	while(s>=1)
	{
		s=s-1;
		f++;
	}
	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=0,a2=0,a3=0,a4=0,a5=0,a6=0,A1=0,A2=0,A3=0,A4=0;
    scanf("%d",&n);
	a1=n/100;
	A1=n-a1*100;
	a2=A1/50;
	A2=A1-a2*50;
	a3=A2/20;
	A3=A2-a3*20;
	a4=A3/10;
	A4=A3-a4*10;
	a5=A4/5;
	a6=A4-a5*5;
	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;
}