N = 200000 print(N) for i in range(1, N): print(i, i + 1)