from random import *

T = 50000
print T
for i in xrange(T):
    R = randint(1, 10**14)
    L = randint(1, R)
    print L, R
from random import *

T = 50000
print T
for i in xrange(T):
    R = randint(1, 10**14)
    L = randint(1, R)
    print L, R