from random import *

n = 100000
print(n, 10**9, 10**9)

for i in range(n):
    print(1, i + 1, i & 1)
from random import *

n = 100000
print(n, 10**9, 10**9)

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