n = 10 ** 6
print (n)
for i in range (n):
	print (i + 1, end = ' ')
print ()
