function Main(input) {
  input = input.trim()
  input = input.split("\n");
  input.shift();
for(var i=0;i<input.length;i++){
console.log(input[i]);
console.log(input[i]);
}
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));