import sys input = sys.stdin.readline N = W = 2000 x = 10**5 print(N, W) print(1, x) for k in range(2, N + 1): print((k - 1) * (x + 1), k)