def main(): T, N, M = map(int, input().split()) for w in range(T): if w == 0: print("2 2", flush=True) else: L = [M // (500 * N) for _ in range(N)] print(1, *L, flush=True) M = int(input()) S = list(map(int, input().split())) P = list(map(int, input().split())) R = list(map(int, input().split())) return 0 main()