function main(input) {
    var inputs = input.split('\n');
    var num = inputs[0];
    var str = inputs[1];
    if(num <= 1){
        console.log('No');
        return;
    }
    var str1 = str.substr(0,num/2);
    var str2 = str.substr(num/2,num/2);
    if(str1 == str2)
        console.log('Yes');
    else
        console.log('No');
}

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