n = 10 ** 6
print (n)
print (*[i for i in range (n)])
