import sys
x = int(sys.argv[1])

n = 100000

print(n)
for i in range(2*n):
    print(x, x, x)
