def piano(notes, n):
  sol = 0
  print sol

  belegung = []
  for i in range(0,n):
    belegung.append(0)
  print " ".join(map(lambda x: str(x+1),belegung))

n = int(raw_input())

notes = map(lambda x: int(x),raw_input().strip().split(' '))

piano(notes,n)