function main(input) {
    var inputs = input.split('\n');
    var num = parseInt(inputs[0],10);
    var str = inputs[1];
    var strhalf = str.substring(0,num/2);
    if(str == (strhalf + strhalf))
        console.log('Yes');
    else
        console.log('No');
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));