<gh_stars>100-1000
from random import randrange
t = 1
n = 10
m = 5
k = 5
print t
print n, m, k
for i in xrange(5):
	print -(10**9),
for i in xrange(n-5):
	print 10**9,
print
for i in xrange(m):
	print i+1,i+1,randrange(1,3)

from random import randrange
t = 1
n = 10
m = 5
k = 5
print t
print n, m, k
for i in xrange(5):
	print -(10**9),
for i in xrange(n-5):
	print 10**9,
print
for i in xrange(m):
	print i+1,i+1,randrange(1,3)