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