n=int(input()) a=list(map(int,input().split())) print(30) for i in reversed(range(30)): l=0 while l>i)&1==0: l+=1 if l==0: l=n print(1,l,1<