import random N, K = map(int,input().split()) for i in range(N): print(*reversed(sorted([random.randint(5, 10), 5])), 1)