M = 99 print(M) for i in range(M): print(i + 1, i + 2)