function Main(input) {
  input = input.split("\n");
  const length = parseInt(input[0]);
  const str = input[1];
  if (length % 2 != 0) { 
    console.log('No');
    return
  }
  const isSame = str.substring(0, length / 2) === str.substring(length / 2);
  if (isSame) {
    console.log('Yes');
    return
  } else {
    console.log('No');
    return
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));