n, k = map(int, input().split()) for i in range(k): print(0, 0, 0, 0)