import random
random.seed (326264)

n = 10 ** 6
a = [random.randint (1, 10 ** 9) for i in range (n)]
print (n)
print (' '.join (map (str, a)))
