'use strict';
const main = input => {
  const n = parseInt(input[0]);
  const s = input[1];
  let ans = 0;
  for(let i=0; i<n/2; i++) {
    if (s[i] !== s[i+n/2]) {
      ans = 1;
    }
  }
  console.log(ans==1?'No':'Yes');
  
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));