(d,*p),q=open(0) for c in p:print(end=q.replace(d,"[%s]"%d,1));d+=c