function main(input) {
    var inputs = input.split('\n');
  
    var T = parseInt(inputs[0],10);
    var str = inputs[1];
  
    var res1 = str.slice(0, Math.floor(T/2));
    var res2 = str.slice(T/2);
    
    if(str.length === 1 ) print('No');
    else print(res1 === res2 ? 'Yes': 'No');
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));