function main(input) {
  var n = input[0]-0;
  var s = input[1];
  var ans = true;
  if(n%2==1) ans = false;
  else{
    for(var i=0;i<n/2;i++){
      if(s[i] != s[i+n/2]){
         ans = false;
         break;
      }
    }
  }
  console.log(ans?"Yes":"No");
}

main(require('fs').readFileSync('/dev/stdin', 'utf8').split("\n"))
