"use strict";

const main = arg => {
  const input = arg.trim().split("\n");
  for (let i = 1; i < input.length; i++) {
    console.log(input[i]);
    console.log(input[i]);
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));  