#include <bits/stdc++.h>
char buf[1000000];
signed main() {
  int n, k;
  char s[11];
  scanf("%d %d %s", &n, &k, s);
  char *p = buf;
  size_t len = strlen(s);
  s[len++] = ' ';
  int i = 0;
  while (i++ < k) {
    strcpy(p, s);
    p += len;
    if (p - buf > 100000) {
      int j = 0;
      while (j++ < k / i) {
        write(STDOUT_FILENO, buf, p - buf);
      }
      i *= j;
      p = buf;
    }
  }
  while (i++ < n) {
    strcpy(p, "7 ");
    p += 2;
  }
  write(STDOUT_FILENO, buf, p - buf);
}
