from numpy import*
v = array(eval(input("Quant. de alunos: ")))

for i in range(size(v)):
	if i % 3 ==0:		
		k =0
		k = k + 1
print(k)
v1 = zeros(k, dtype= int)
for j in v:
	j = 0
	j= j + 1
	print(v1)