N=50 print(100) for i in range(N): print(i,i) print(i,N-i-1)