process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = [];
var reader = require('readline').createInterface({
    input: process.stdin,
    output: process.stdout
});
reader.on('line', (line) => {
    lines.push(line);
});
reader.on('close', () => {
    const num = parseInt(lines[0])
    if (num / 2 !== 0) {
      console.log("No")
      exit
    }
    const wholeString = parseInt(lines[1])
    const str = wholeString.slice(0, num / 2)
    const testString = str + str
    if (testString === wholeString){
		console.log("Yes")
    } else {
      console.log("No")
    }
});