n = 10 ** 6
print (n)
print (*range (1, n + 1))
