print(10000)
for i in range(10000):
  print(""+str(i)+" "+str(int(i*(i+1)/2)))