r=raw_input s=r() print s,s while 1:print r(),r()