w = 1000 n = w * 2 - 1 t = 100000 rgt = w print(n, w) for i in range(n): if i % 2 == 0: print(1, t) else: print(rgt, t * rgt) rgt -= 1 t -= 1