semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main(){
	int n,m;
	scanf("%d",&n);
	m=n/100;
	printf("%d\n",m);
	m=(n%100)/50;
	printf("%d\n",m);
	m=((n%100)%50)/20;
	printf("%d\n",m);
	m=(((n%100)%50)%20)/10;
	printf("%d\n",m);
	m=((((n%100)%50)%20)%10)/5;
	printf("%d\n",m);
	m=(((((n%100)%50)%20)%10)%5)/1;
	printf("%d\n",m);
	return 0;
}
int main()
{
   int m,a,b,c,d,e,f;
   cin>>m;
   a=m%100;
   b=a%50;
   c=b%20;
   d=c%10;
   e=d%5;
   cout<<(m-a)/100<<'\n'<<(a-b)/50<<'\n'<<(b-c)/20<<'\n'<<(c-d)/10<<'\n'<<(d-e)/5<<'\n'<<e<<endl;
   return 0;
}
int main ()
{
int n,yb,ws,es,sy,wy,yy,z,x,w,y;
scanf("%d",&n);
yb=n/100;
z=n-yb*100;
ws=z/50;
y=n-yb*100-ws*50;
es=y/20;
x=n-yb*100-ws*50-es*20;
sy=x/10;
w=n-yb*100-ws*50-es*20-sy*10;
wy=w/5;
yy=w-wy*5;
printf("%d\n%d\n%d\n%d\n%d\n%d",yb,ws,es,sy,wy,yy);
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%d\n%d\n%d\n%d\n%d",a,b,c,d,e,f);
	return 0;
}
int main()
{
	// bai?shi?ge??????????????
	int a, bai, shi, ge;

	// n100??100????????????
	int n100, n50, n20, n10, n5, n1;
	cin >> a;
	bai = a / 100; // ??????
	shi = (a - bai * 100) / 10; // ??????
	ge = a % 10; // ????
	n100 = bai; // ??100???????????
	if (shi >= 5) // ?????????5
	{
		n50 = 1; // ??50???????
		if ((shi - 5) >= 2) // ????5?????2?????20??
		{
			n20 = (shi - 5) / 2; // 20???
			n10 = shi - 5 - 2 * n20; // 10???
		}
		else // ????5???2?????20??
		{
			n20 = 0; // 20???
			n10 = shi - 5; // 10???
		}
	}
	else // ???????50???????????????~~
	{
		n50 = 0;
		if (shi >= 2)
		{
			n20 = shi / 2;
			n10 = shi - 2 * n20;
		}
		else
		{
			n20 = 0;
			n10 = shi;
		}
	}

	// ?????????~~???~~
	if (ge >= 5) 
	{
		n5 = 1;
		n1 = ge -5;
	}
	else
	{
		n5 = 0;
		n1 = ge;
	}

	// ?????
	cout << n100 << endl << n50 << endl << n20 << endl << n10 << endl << n5
		<< endl << n1 << endl;
	return 0;
}
void 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;
 f=n%10-5*e;
 printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e,f);
}
int main()
{
	int t;
	int bai,ws,es,shi,wu,yi;
	scanf("%d",&t);
	bai=t/100;
	printf("%d\n",bai);
	if(t-bai*100>=50)
	{
		ws=1;
	}
	else
	{
		ws=0;
	}
	printf("%d\n",ws);
	if((t-bai*100-ws*50)>=40)
	{
	    es=2;
	}
	else if((t-bai*100-ws*50)>=20)
	{
		es=1;
	}
	else
	{
		es=0;
	}
	printf("%d\n",es);
	if((t-bai*100-ws*50-es*20)>=10)
	{
	    shi=1;
	}
	else
	{
		shi=0;
	}
	printf("%d\n",shi);
	if((t-bai*100-ws*50-es*20-shi*10)>=5)
	{
	    wu=1;
	}
	else
	{
		wu=0;
	}
	printf("%d\n",wu);
	if((t-bai*100-ws*50-es*20-shi*10-wu*5)>0)
	{
	    yi=(t-bai*100-ws*50-es*20-shi*10-wu*5);
	}
	else
	{
		yi=0;
	}
	printf("%d\n",yi);

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


   return 0;
}
int main ()
{
 int n,a,b,c,d,e,i,zong;  
 scanf("%d",&n);
 for(i=0;i<=1000;i++)
  {
    if(100*i<=n&&100*(i+1)>n)
    a=i;
  }
 for(i=0;i<=1000;i++)
  {
    if(50*i<=(n-100*a)&&50*(i+1)>(n-100*a))
     {b=i;
     zong=n-100*a-50*b;}
  }
 for(i=0;i<=1000;i++)
   {
     if(20*i<=zong&&20*(i+1)>zong)
      { c=i;
       zong=n-100*a-50*b-20*c;}
    }
  for(i=0;i<=1000;i++)
   {
     if(10*i<=zong&&10*(i+1)>zong)
     { d=i;
       zong=n-100*a-50*b-20*c-10*d;}}
    for(i=0;i<=1000;i++)
   {
     if(5*i<=zong&&5*(i+1)>zong)
     { e=i;
       zong=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,zong);
 return 0;
}
int main() {
	int a,b,c,d,e,f,g;
	scanf("%d",&a);
	if (a<1000) {
		b=a/100;
		c=(a-100*b)/50;
		d=(a-100*b-50*c)/20;
		e=(a-100*b-50*c-20*d)/10;
		f=(a-100*b-50*c-20*d-10*e)/5;
		g=a%5;
		printf("%d\n%d\n%d\n%d\n%d\n%d\n",b,c,d,e,f,g);
	}else {
		printf("please input a number less than 1000");
	}
	return 0;
}
int main()
{
	int n,b=0;
	cin>>n;
	for(int i=10;i>=0;--i)
		for(int j=1;j>=0;--j)
			for(int k=2;k>=0;--k)
				for(int l=2;l>=0;--l)
					for(int m=2;m>=0;--m)
						for(int a=5;a>=0;--a)
						{
							if((100*i+50*j+20*k+10*l+5*m+a==n)&&b==0)
							{cout<<i<<endl<<j<<endl<<k<<endl<<l<<endl<<m<<endl<<a<<endl;b=1;
							}
						}
		return 0;
}
int main()
{
	int n,shu[6]={0},qian[6]={100,50,20,10,5,1},zong=0,i,j;
	scanf("%d",&n);
	for(i=0;i<6;i++){
		for(j=1;;j++){
			if(zong+qian[i]*j<=n){
				shu[i]+=1;
			}else{
				zong+=shu[i]*qian[i];
				break;
			}
		}
	}
	for(i=0;i<6;i++){
		printf("%d\n",shu[i]);
	}
	return 0;
}
int main()
{
	int n,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0;
	int i=0;
	int l=0;
	int k=0;
	int q=0;
	int x=0;
	int y=0;
	scanf("%d",&n);
	while(n>=100)
	{
		n=n-100;
		i++;
		a1=i;
	}
	
	printf("%d\n",a1);
	while(n>=50&&n<100)
	{
		n=n-50;
		l++;
		a2=l;
	}
	
	printf("%d\n",a2);
	while(n>=20&&n<50)
	{
		n=n-20;
		k++;
		a3=k;
	}
	
		printf("%d\n",a3);
	while(n>=10&&n<20)
	{
		n=n-10;
		x++;
		a4=x;
	}
	
		printf("%d\n",a4);
	while(n>=5&&n<10)
	{
		n=n-5;
		q++;
		a5=q;
	}
	
		printf("%d\n",a5);
	while(n>0&&n<5)
	{
		n=n-1;
		y++;
		a6=y;
	}
	
		printf("%d\n",a6);
	
		return 0;
}
int main(){
	int n,i,a[6],b[6]={100,50,20,10,5,1};
	scanf("%d",&n);
	a[0]=n/b[0];
	printf("%d\n",a[0]);
	for(i=0;i<5;i++){
		n-=a[i]*b[i];
		a[i+1]=n/b[i+1];
		printf("%d\n",a[i+1]);
	}
	return 0;
}
int main()
{
    int n=0,i=0;
    int a[6]={0};
    cin>>n;
    a[0]=n/100;
    n=n-a[0]*100;
    a[1]=n/50;
    n=n-a[1]*50;
    a[2]=n/20;
    n=n-20*a[2];
    a[3]=n/10;
    n=n-10*a[3];
    a[4]=n/5;
    n=n-5*a[4];
    a[5]=n/1;
    for(i=0;i<6;i++)
    cout<<a[i]<<endl;
    cin.get();
    cin.get();
    return 0;
    }
int main()
{int n,i;
int a,b,c,d,e,f;

a=0;
b=0;
c=0,
d=0,
e=0,
f=0,
cin>>n;

for(i=1;n-100>=0;i++)//????????
	{n=n-100;
	a=i;}
for(i=1;n-50>=0;i++)
	{n=n-50;
	b=i;}
for(i=1;n-20>=0;i++)
	{n=n-20;
	c=i;}
for(i=1;n-10>=0;i++)
	{n=n-10;
	d=i;}
for(i=1;n-5>=0;i++)
	{n=n-5;
	e=i;}
for(i=1;n-1>=0;i++)
	{n=n-1;
	f=i;}

cout<<a<<endl;
cout<<b<<endl;
cout<<c<<endl;
cout<<d<<endl;
cout<<e<<endl;
cout<<f<<endl;

return 0;}
int main()
{
	int n,m=0,a[6]={0},b[6]={100,50,20,10,5,1},i,j;
	scanf("%d",&n);
    for(j=0;j<6;j++)
	{
		for(i=0;m<n-b[j]+1;i++)
		{
			m=m+b[j];
			a[j]++;
		}
	}
	
	for(i=0;i<6;i++)
	{
		printf("%d\n",a[i]);
	}
	return 0;
}
int main()
{
	int sum=0;int x100=0,x50=0,x20=0,x10=0,x5=0,x1=0;
	cin>>sum;
	x100=sum/100;sum=sum-100*x100;
	x50=sum/50;sum=sum-50*x50;
	x20=sum/20;sum=sum-20*x20;
	x10=sum/10;sum=sum-10*x10;
	x5=sum/5;sum=sum-5*x5;
	x1=sum/1;sum=sum-1*x1;
	cout<<x100<<endl;
	cout<<x50<<endl;
	cout<<x20<<endl;
	cout<<x10<<endl;
	cout<<x5<<endl;
	cout<<x1<<endl;


	cin.get();cin.get();
	return 0;
}
int main(int argc, char* argv[])
{
   
    int m,i;
	int a[6]={100,50,20,10,5,1},n[6];
	scanf("%d",&m);
	for(i=0;i<6;i++)
	{
		n[i]=m/a[i];
		m=m-n[i]*a[i];
		printf("%d\n",n[i]);
	}
	return 0;
}
int main()
{
	int n;
	int b,ws,es,s,w,y;
	scanf("%d",&n);
	b=n/100;
	ws=(n%100)/50;
	es=(n%50)/20;
	s=(n-100*b-50*ws-20*es)/10;
	w=(n%10)/5;
	y=n%5;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",b,ws,es,s,w,y);
	return 0;
}
int main()
{
    int n,a,b,c,d,e,f;
	scanf("%d",&n);
    a=n/100;
    b=(n%100)/50;
    c=(n%50)/20;
    d=(n-100*a-50*b-20*c)/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 argc)
{    int i,n,a[7];
int b[6]={100,50,20,10,5,1};
     cin>>n;
	 for (i=1;i<=6;i++)
	 { a[i]=n/b[i-1];
	 n=n%b[i-1];
	 cout<<a[i]<<endl;}
return 0;
}
int main()
{
	int a;
	scanf("%d",&a);
	int b,c,d,e,f,g,h,i,j,k;
	b=a/100;
	c=(a-b*100)/50;
	d=(a-b*100-c*50)/20;
	e=(a-b*100-c*50-d*20)/10;
	f=(a-b*100-c*50-d*20-e*10)/5;
	g=a-b*100-c*50-d*20-e*10-f*5;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",b,c,d,e,f,g);
	return 0;
}
int main()
{
	int sum;
	cin>>sum;
	cout<<sum/100<<endl;
	sum=sum-(sum/100)*100;
	cout<<sum/50<<endl;
	sum=sum-(sum/50)*50;
	cout<<sum/20<<endl;
	sum=sum-(sum/20)*20;
	cout<<sum/10<<endl;
	sum=sum-(sum/10)*10;
        cout<<sum/5<<endl;
	sum=sum-(sum/5)*5;
	cout<<sum;
	
	return 0;
}
int main(){
 int n,i=0;
 int a=0,b=0,c=0,d=0,e=0,f=0;
 scanf("%d",&n);
  a=n/100;
  i=n-a*100;
  b=i/50;
  i=i-b*50;
  c=i/20;
  i=i-c*20;
  d=i/10;
  i=i-d*10;
  e=i/5;
  f=i-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,a,b,c,d,e,f;
scanf("%d%d%d%d%d%d%d",&n,&a,&b,&c,&d,&e,&f);
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,b,c,d,e,m,g;
	
	scanf("%d",&m);
	a=m/100;

	b=m/10;
	c=b-10*a;

	printf("%d\n",a);
	if(c>=5){
		printf("1\n");
		d=(c-5)/2;
		printf("%d\n",d);
		
		if((c-5)%2==0){
			printf("0\n");
		}
		else{
			printf("1\n");
		}
	}
	else{
		printf("0\n");
		printf("%d\n",d=c/2);

		if(c%2==0){
			printf("0\n");
		}
		else{
			printf("1\n");
		}
	}
	e=m-10*b;
	if(e>=5){
		printf("1\n");
		printf("%d\n",g=e-5);
	}
	else{
		printf("0\n");
		printf("%d\n",e);
	}return 0;
 }
void main()
{
	int n,a[7],i;
	scanf("%d",&n);
	a[0]=n/100;
	n=n%100;
	a[1]=n/50;
	n=n%50;
	a[2]=n/20;
	n=n%20;
		a[3]=n/10;
	n=n%10;

		a[4]=n/5;
	n=n%5;

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

	if (b>=5)
	{
		printf("%d\n",b/5);
		b=b-5;
	}
	else 
	{
		printf("0\n");
	}
	if (b>=2 && b<5)
	{
		printf("%d\n",b/2);
		b=b-2;
	}
	else 
	{
		printf("0\n");
	}
	if (b==1)
	{
		printf("%d\n",b);
	}
	else 
	{
		printf("0\n");
	}
	if (c>=5)
	{
		printf("%d\n",c/5);
		c=c-5;
	}
	else 
	{
		printf("0\n");
	}
	if (c>=1 && c<5)
	{
		printf("%d\n",c);
	}
	else 
	{
		printf("0\n");
	}

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

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

	int	piao100 = 0;
	int	piao50 = 0;
	int	piao20 = 0;
	int	piao10 = 0;
	int	piao5 = 0;
	int	piao1 = 0;

	piao100 = (int) (N / 100);
	N = N - 100 * piao100;

	piao50 = (int)	(N / 50);
	N = N - 50 * piao50;

	piao20 = (int) (N / 20);
	N = N - 20 * piao20;

	piao10 = (int) (N / 10);
	N = N - 10 * piao10;

	piao5 = (int) (N / 5);
	N = N - 5 * piao5;

	piao1 = N;

	cout << piao100 << endl << piao50 << endl << piao20 << endl << piao10 << endl;
	cout << piao5 << endl << piao1 << endl;
	
	

return 0;
}
int main()
{
	int n,a;
	int sz[6];
	int money[6]={100,50,20,10,5,1};
	scanf("%d",&n);
	a=n;
	for(int i=0;i<6;i++){
		sz[i]=a/(money[i]);
		a=a%(money[i]);
	}
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",sz[0],sz[1],sz[2],sz[3],sz[4],sz[5]);
	return 0;
}
int main()
{
	int m,i,j;
	int a[6]={100,50,20,10,5,1};
	int b[6]={0};
	scanf("%d",&m);
	for(i=0;i<=5;i++)
	{
		for(j=1;m>=a[i];j++)
		{
			m=m-a[i];
			b[i]++;
		}
	}
    for(i=0;i<=5;i++)
	{
		printf("%d\n",b[i]);
	}
	return 0;
}
int main()
{
	int n,y100,y50,y20,y10,y5,y1,y;
	scanf("%d",&n);
	y100=n/100;
	y=n-100*y100;
	y50=y/50;
	y=y-50*y50;
	y20=y/20;
	y=y-20*y20;
	y10=y/10;
	y=y-10*y10;
	y5=y/5;
	y=y-5*y5;
	printf("%d\n",y100);
	printf("%d\n",y50);
	printf("%d\n",y20);
	printf("%d\n",y10);
	printf("%d\n",y5);
	printf("%d\n",y);
	return 0;
}
int main()
{
	int a[6]={0};
	int n,i,j;
	scanf("%d",&n);
	int wor[6]={100,50,20,10,5,1};
	int num[6];
	for(i=0;i<=5;i++)
	{
		num[i]=n/wor[i];
		n=n-num[i]*wor[i];
	}
	for(i=0;i<=5;i++)
	{
		printf("%d\n",num[i]);
	}
	return 0;
}
int main(int argc, char* argv[])
{
	int n,i;
	scanf("%d",&n);
	for(i=0;n>=100;i++)
	{
		n-=100;
	}
	printf("%d\n",i);
	for(i=0;n>=50;i++)
	{
		n-=50;
	}
	printf("%d\n",i);
	for(i=0;n>=20;i++)
	{
		n-=20;
	}
	printf("%d\n",i);
	for(i=0;n>=10;i++)
	{
		n-=10;
	}
	printf("%d\n",i);
	for(i=0;n>=5;i++)
	{
		n-=5;
	}
	printf("%d\n",i);
	for(i=0;n>=1;i++)
	{
		n-=1;
	}
	printf("%d\n",i);
	return 0;
}
int main()
{
	int n;
	scanf("%d",&n);
	int i;
	int j;
	i=n/100;
	j=n%100;
	n=j;
	printf("%d\n",i);
	i=n/50;
	j=n%50;
	n=j;
	printf("%d\n",i);
	i=n/20;
	j=n%20;
	n=j;
	printf("%d\n",i);
	i=n/10;
	j=n%10;
	n=j;
	printf("%d\n",i);
	i=n/5;
	j=n%5;
	n=j;
	printf("%d\n",i);
	i=n/1;
	j=n%1;
	n=j;
	printf("%d\n",i);
	return 0;
}
int main()
{
    int n,a,b,c,d,e,f,g,h,i,j;
    scanf("%d",&n);
    a=n%100;
    b=n%10; 
    c=(n-a)/100;
    d=a%50;
    e=(a-d)/50;
    f=((a-e*50)-(a-e*50)%20)/20;
    g=(n-100*c-50*e-20*f)%10;
    h=(n-100*c-50*e-20*f-g)/10;
    i=(n-100*c-50*e-20*f-10*h)%5;
    j=(n-100*c-50*e-20*f-10*h-i)/5;
    printf("%d\n%d\n%d\n%d\n%d\n%d",c,e,f,h,j,i);
    scanf("%d",&n);
    return 0;
}
int main(){
	int n;
	int a=0,b=0,c=0,d=0,e=0,f=0;
	scanf("%d",&n);
	a=n/100;
	n%=100;
	b=n/50;
	n%=50;
	c=n/20;
	n%=20;
	d=n/10;
	n%=10;
	e=n/5;
	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;
}
void main()
{
	int n;
	int a[6]={100,50,20,10,5,1};
	int b[6];
	int i;
	scanf("%d",&n);
	for(i=0;i<6;i++)
	{
		if(n<a[i])
			printf("0\n");
		if(n>=a[i])
		{
			b[i]=n/a[i];
			n=n-b[i]*a[i];
			printf("%d\n",b[i]);
		}
	}
}
//**************************
//**??                  **
//**??:??? 1100012914**
//**??:2011.11.6        **
int main()
{
	int a,hu,fif,tw,te,fiv,one,i,t;
	cin >> a;
	t = a % 10;
		if(t >= 5)
		{
			fiv = 1;
			one = t - 5;
		}
		else
		{
			fiv = 0;
			one = t;
		}
		a = a /10;
	t = a % 10;
	if (t >= 5)
	{
		fif = 1;
		t = t - 5;
	if (t > 3)
	{
	tw = 2;
	te = t - 4;
	}
	else
		if(t > 1)
		{
			
			tw = 1;
			te = t - 2;
		}
		else 
	{
		
		tw = 0;
		te = t;
	}
	}
	else
	{
		if (t > 3)
	{fif = 0;
	tw = 2;
	te = t - 4;
	}
	else
		if(t > 1)
		{
			fif = 0;
			tw = 1;
			te = t - 2;
		}
		else 
	{
		fif = 0;
		tw = 0;
		te = t;
	}
	}

	a = a/10;
	t = a % 10;
	hu = t;
	cout << hu << endl << fif << endl << tw << endl << te << endl << fiv << endl << one << endl;

	return 0;
}
int main() {
	int n,k1,k2,t1,t2,s1,s2,p1,p2,q1,q2,w1,w2;
	scanf ("%d",&n);
	k1=n/100;
	k2=n%100;
	t1=k2/50;
	t2=k2%50;
	s1=t2/20;
	s2=t2%20;
	p1=s2/10;
	p2=s2%10;
	q1=p2/5;
	q2=p2%5;
	w1=q2/1;
	w2=q2%1;
	printf ("%d\n%d\n%d\n%d\n%d\n%d",k1,t1,s1,p1,q1,w1);
	return 0;
}
/*????  	
??
??????????????????345?????????????????????????100??50??20??10??5??1???????????????????

????
????1000?????

????
??????????????????????100??50??20??10??5??1???????*/
int main()
{
int n;
scanf("%d",&n);
int a,b,c,d,e,f;

a=(n-n%100)/100;
b=((n-a*100)-(n-a*100)%50)/50;
if((n-a*100-b*50)>=20)
{
	c=((n-a*100-b*50)-(n-a*100-b*50)%20)/20;
	d=((n-a*100-b*50-c*20)-(n-a*100-b*50-c*20)%10)/10;
}
else if(((n-a*100-b*50)<20)&&((n-a*100-b*50)>=10))
{c=0;
d=((n-a*100-b*50)-(n-a*100-b*50)%10)/10;
}else if(((n-a*100-b*50)<10))
{
c=0;
d=0;
}



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

	scanf("%d",&sum);

	if(sum>=100)
	{
		num[0]=sum/100;
		sum=sum%100;
	}
	if(sum>=50)
	{
		num[1]=sum/50;
		sum=sum%50;
	}
	if(sum>=20)
	{
		num[2]=sum/20;
		sum=sum%20;
	}
	if(sum>=10)
	{
		num[3]=sum/10;
		sum=sum%10;
	}
	if(sum>=5)
	{
		num[4]=sum/5;
		sum=sum%5;
	}
	if(sum>=1)
	{
		num[5]=sum/1;
		sum=sum%1;
	}

	for(i=0;i<6;i++)
	{
		printf("%d\n",num[i]);
	}

	return 0;
}
int main()
{
	double m;
	int a,b,c,d,e,f;
	cin>>m;
	a=(int)(m/100);
	m=m-100*a;
	b=(int)(m/50);
	m=m-50*b;
	c=(int)(m/20);
	m=m-20*c;
	d=(int)(m/10);
	m=m-10*d;
	e=(int)(m/5);
	m=m-5*e;
	f=m;
	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;
	int a[6]={100,50,20,10,5,1},b[6]={0};
	cin>>n;
	for(i=0;i<6;i++)
	{
		b[i]=n/a[i];
		n=n%a[i];
		cout<<b[i]<<endl;
	}
	return 0;
}
int main()
{
	int n,a[6];
    scanf("%d",&n);
	a[0]=n/100;
	a[1]=n%100/50;
	a[2]=n%100%50/20;
	a[3]=n%100%50%20/10;
	a[4]=n%100%50%20%10/5;
	a[5]=n%100%50%20%10%5;
	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 n,i,j;
scanf("%d",&n);
for(i=0;;i++)
{
if(i*100<=n && i*100+100>n) break;
}
printf("%d\n",i);
n=n-i*100;
for(i=0;;i++)
{
if(i*50<=n && i*50+50>n) break;
}
printf("%d\n",i);
n=n-50*i;
for(i=0;;i++)
{
if(i*20<=n && i*20+20>n) break;
}
printf("%d\n",i);
n=n-i*20;
for(i=0;;i++)
{
if(i*10<=n && i*10+10>n) break;
}
printf("%d\n",i);
n=n-10*i;
for(i=0;;i++)
{
if(i*5<=n && i*5+5>n) break;
}
printf("%d\n",i);
n=n-i*5;
for(i=0;;i++)
{
if(i<=n && i+1>n) break;
}
printf("%d",i);
return 0;
}
int main(){
	int s,a,b,c,d,e,f,g,h;
	scanf("%d",&s);
	a=s/100;
	b=(s-100*a)/10;
	c=s-100*a-10*b;
	d=b/5;
	e=(b-5*d)/2;
	f=b-5*d-2*e;
	g=c/5;
	h=c-5*g;
	printf("%d\n%d\n%d\n%d\n%d\n%d\n",a,d,e,f,g,h);
	return 0;
}
int main()
{
         int n,a,b,c,e,f,d;
         scanf("%d",&n);
         a=n/100;
         
         if(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;
         }
         else if(n>=50){
         b=1;
         c=(n-50)/20;
         d=(n-50-20*c)/10;
         e=(n-50-20*c-10*d)/5;
         f=n-50-20*c-10*d-5*e;
         }
         else if(n>=20){
         b=0;
         c=n/20;
         d=(n-20*c)/10;
         e=(n-20*c-10*d)/5;
         f=n-20*c-10*d-5*e;
         }
         else if(n>=10){
          b=0;    
         c=0;
         d=1;
              d=(n-10)/5;
         f=n-10-5*e;
         }
         else if(n>=5){
           b=0;    
         c=0;
         d=0;    
          e=1;
              f=n-5;
              }
         else if(n<5){
           b=0;    
         c=0;
         d=0;    
          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;
}
int main(){
	int sum,n=0;
	scanf("%d",&sum);
	while(sum>=100){
		n++;
		sum-=100;
	}
	printf("%d\n",n);
	n=0;
    while(sum>=50){
		n++;
		sum-=50;
	}
	printf("%d\n",n);
	n=0;
    while(sum>=20){
		n++;
		sum-=20;
	}
	printf("%d\n",n);
	n=0;
	while(sum>=10){
		n++;
		sum-=10;
	}
	printf("%d\n",n);
	n=0;
    while(sum>=5){
		n++;
		sum-=5;
	}
	printf("%d\n",n);
	n=0;
    while(sum>=1){
		n++;
		sum-=1;
	}
	printf("%d\n",n);
	return 0;
}
/*
 * ???:02.cpp
 * ???:???
 * ????:2011-11-06
 * ??:?????????????????????????????????????????100??50??20??10??5??1?????
 */

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

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