"use strict";
    
const main = arg => {
    arg = arg.trim().split("\n");
    const N = parseInt(arg[0]);
    const S = arg[1].split("");
    
    if(N % 2 !== 0) {
        console.log("No");
        return;
    }
    
    const front = S.slice(0, Math.floor(N / 2)).join("");
    const back  = S.slice(-Math.floor(N / 2)).join("");
    
    console.log(front === back ? "Yes" : "No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));