function Main(input) {
  	input = input.split("\n");
  	var strLength = parseInt(input[0], 10);
  	var words = input[1];
  	var temp = words.substring(0, strLength / 2);
  	var result = words == (temp + temp) ? "Yes" : "No";
   	console.log('%s', result);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));