#!/usr/bin/python 
# by hcbbt 2014-08-30 17:30:33
#


n = 100000
print n, n

for i in range(n - 1):
    print 2,
print 3

for i in range(n - 1):
    print i + 1, i + 2

for i in range(n):
    print 1, n
