T, N, money = map(int, input().split()) S = [0] * N P = [0] * N R = [0] * N for week in range(T): p = sorted([(P[i], i) for i in range(N)], reverse = True) L = [money // (400 * N)] * N for i in p[7:]: L[i[1]] = 0 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()))