using System.Console;for(mutable s;{s=ReadLine();s!=null};)WriteLine(s+"\n"+s)