print(30) A = [i for i in range(2,30+2)] A[-1] = 1 for _ in range(30): print(2) print(*A)