/*
TASK: number
LANG: C++
*/
//Rumen Hristov Hristov
#include <stdio.h>
#include <string>
#include <algorithm>
#include <sstream>
#include <set>
using namespace std;

string tostr(int j)
{
    ostringstream out;
    out<<j;
    return out.str();
}

string solve (int n , int k , int d)
{
    string t = "0";
    string ans;
    string tmp;
    int i,j;
    set <string> st;
    
    ans = "1";
    
    for (i=1;i<k;i++)
    {
        ans += "0";
    }
    
    tmp = ans;
    
    for (;i<n;i++)
    {
        st.insert(tmp);
        
        tmp = tmp.substr(1);
        
        j = 0;
        
        while (j<=d && st.count(tmp + tostr(j)) != 0)
        {
            j++;
        }
        
        if ( j == (d+1) )
        {
            return t;
        }
        
        tmp += (j+'0'); 
        ans += (j+'0');
    }
    
    return ans;
}

int main()
{
    int n,k,d;
    
    scanf ("%d%d%d",&n,&k,&d);
    
    printf ("%s\n",solve(n,k,d).c_str());
    
    return 0;
}
