while 1: p=t=[] for e in input():t+=[[]]*(e