'use strict';
const fs = require('fs');

function main(arg) {
    let input = arg.split(/\s/);
    let N = parseInt(input[0], 10);
    let S = input[1];
    if(N % 2 == 0) {
        let T = S.substr(Math.ceil(N / 2));
        if(S === T + T) {
            console.log('Yes');
            return;
        }
    }
    console.log('No');
}

main(fs.readFileSync('/dev/stdin', 'utf8'));
