#include <iostream>

using namespace std;

int n, k, x;

int main()
{
    cin>>n>>k>>x;

    if (k==3)
    {
        int prosli;
        for (int i=0; i<n; i++)
        {
            //cout<<i<<" ";
            if (i==0)
            {
                cout<<1<<" ";
                prosli=1;
            }
            else if (i<=k)
            {
                cout<<1+x<<" ";
                prosli=1+x;
            }
            else
                cout<<x<<" ";
        }
    }

    else if (n==k)
    {
        int prosli;
        if (n%2==0)
        {
            for (int i=0; i<n; i++)
            {
                if (i==0)
                {
                    cout<<1<<" ";
                    prosli=1;
                }
                else
                {
                    if (i<n/2)
                    {
                        cout<<prosli+(x-1)<<" ";
                        prosli+=(x-1);
                    }
                    else if (i==n/2)
                    {
                        cout<<prosli+x<<" ";
                        prosli+=x;
                    }
                    else
                    {
                        if (i>(n/2)+1)
                        {
                            cout<<prosli-(x-2)<<" ";
                            prosli-=(x-2);
                        }
                        else
                        {
                            cout<<prosli-(x)<<" ";
                            prosli-=(x);
                        }
                    }
                }
            }
        }
        else
        {
            for (int i=0; i<n; i++)
            {
                if (i==0)
                {
                    cout<<1<<" ";
                    prosli=1;
                }
                else
                {
                    if (i<=(n/2))
                    {
                        cout<<prosli+(x-1)<<" ";
                        prosli+=(x-1);
                    }
                    else if (i==(n/2)+1)
                    {
                        cout<<prosli+(x)<<" ";
                        prosli+=(x);
                    }
                    else
                    {
                        if (i>(n/2)+2)
                        {
                            cout<<prosli-(x-1)<<" ";
                            prosli-=(x-1);
                        }
                        else
                        {
                            cout<<prosli-(x)<<" ";
                            prosli-=(x);
                        }
                    }
                }
            }
        }
    }
}