#include
using namespace std;
int main() {long a;
long n,k,reactor[100],i;
cin>>a>>n>>k;
for(i=0;i<k;i++)
reactor[i]=0;
i=0;
while(a–)
{
reactor[0]++;
if(reactor[i]>n)
{
reactor[i]=0;
reactor[i+1]++;
if(i==k-1)
{
reactor[k]=0;
i=0;
reactor[i]++;
}
i++;
}
}
for(i=0;i<k;i++)
{cout<<reactor[i];
if(i==k-1)
cout<<"\n";
else cout<<"\n";
}
// your code goes here
return 0;
}