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