while 1: l=o=[] for v in input():o+=[[]]*(v