n, k = map(int, input().split()) l = list(map(int, input().split())) a = [list(map(int, input().split())) for i in range(n)] for i in range(k): print(1, 1, 1, 1)