r=raw_input s=r() print s,s while~0:print r(),r()