import random
random.seed (2162)
n = 1000000
print (n)
print (' '.join (map (str, [random.randint (-2, +2) for i in range (n)])))
