j="".join for x in zip(*[j(j(l).split()).rjust(id(0)%13)for l in zip(*open("../fd/0"))]):print j(x)