import math
from collections import deque


def main():
    n, k, s = map(int, input().split())
    ans = []
    if s % 2 == 0:
        for i in range(k + 1):
            ans.append(s // 2)
        for i in range(n - k - 1):
            if s == 2:
                ans.append(3)
            else:
                ans.append(s-1)
    else:
        for i in range(k):
            ans.append(s)
        for i in range(n - k):
            ans.append(s + 1)
    print(" ".join(map(str, map(int, ans))))


if __name__ == "__main__":
    main()
