#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N, K, S;
  if (S < 1000000000) {
    for (long long i = 0; i < K; i++) {
      if (i == 0) {
        cout << S;
        continue;
      }
      cout << " " << S;
    }
    for (long long i = K; i < N; i++) {
      cout << " " << S + 1;
    }
  } else {
    for (long long i = 0; i < K; i++) {
      if (i == 0) {
        cout << S;
        continue;
      }
      cout << " " << S;
    }
    for (long long i = K; i < N; i++) {
      cout << " " << 1;
    }
  }
  cout << endl;
  return 0;
}
