# import bisect
# from collections import Counter, deque
# import copy
# from heapq import heappush, heappop, heapify
# from fractions import gcd
# import itertools
# from operator import attrgetter, itemgetter
# import math

import sys

# import numpy as np

ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    n, k, s = list(map(int,ipti().split()))
    a = [s] * n

    for i in range(n-k):
        a[i] = (a[i] + (i+1) )% 10**9

    print(*a)

if __name__ == '__main__':
    main()