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