B=list(open('../fd/0')) while"*"not in B[0]:B=B[1:] l,r=map(min,zip(*[[b[::d].find("*")%99for d in[1,-1]]for b in B])) for b in B:print b[l:-r]