#include <bits/stdc++.h>
int a[100002];
using namespace std;
int main() {
  int n, m, sum;
  scanf("%d%d%d", &n, &m, &sum);
  a[0] = sum;
  m = m - 1;
  int j = 1;
  while (m != 0) {
    for (int i = 1; i <= sum / 2; i++) {
      if (m != 0) {
        int k = sum - i;
        a[j++] = i;
        a[j++] = k;
        m -= 1;
      }
    }
  }
  for (j; j < n; j++) {
    a[j] = sum + 1;
  }
  for (int i = 0; i < n; i++) {
    printf("%d ", a[i]);
  }
}
