T, N, money = map(int, input().split()) S = [0] * N P = [0] * N R = [0] * N for week in range(T): if money > 500000 and week % 17 == 0: print(2, 1, flush = True) else: L = [money // (500 * N)] * N print("1", *L, flush=True) money = int(input()) S = list(map(int, input().split())) P = list(map(int, input().split())) R = list(map(int, input().split()))