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