const fs = require('fs')
const main = (input) => {
    const inputs = input.split("\n");
    const N = Number(inputs[0]);
    const S = inputs[1];
    if (N % 2 !== 0) {
        console.log("No");
    } else {
        console.log(S.slice(0, N/2) === S.slice(N/2, S.length) ? "Yes": "No");
    }
}
main(fs.readFileSync('/dev/stdin', 'utf8'))