M=59 N=30 print(M) for i in range(N): print(1) print(i+1) for i in range(2,N+1): print(4) print(i,0)