a='' while 1: a=raw_input() print a+'\n'+a