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