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