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