f="".join l=[] try: while 1:l+=[list(raw_input())+[""]*99] except:print f(map(f,zip(*l)))