'use strict'
function Main(input) {
	input = input.split('\n');
  	let num = input[0];
  	let char = input[1];
  	
	const divide = char.length / 2;
  	let first = char.substr(0, divide);
  	let second = char.substr(divide, divide);
  
  	if (num <=1) {
  		console.log('No');
    } else if(first === second) {
    	console.log('Yes')
    } else {
    	console.log('No');
    }
  
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
