#include <bits/stdc++.h>
using namespace std;
long long inf = 1000000000000;
int main() {
  int n, k, s;
  cin >> n >> k >> s;
  if (k == 0) {
    for (int i = 0; i < n; i++) {
      cout << s - 1 << " ";
    }
    return (0);
  } else if (n == k) {
    for (int i = 0; i < n; i++) {
      cout << s << " ";
    }
    return (0);
  } else {
    int count = k + 1;
    int Out = s / 2;
    int Out2 = s - Out;
    int now = 1;
    while (now <= count) {
      if (now % 2 == 1)
        cout << Out << " ";
      else
        cout << Out2 << " ";
      now++;
    }
    while (now <= n) {
      cout << s - 1 << " ";
      now++;
    }
  }
  return (0);
}
