function Main (input) {
  input = input.split("\n");
  var N = parseInt(input[0], 10);
  var S = input[1];
  var ans = "Yes";
  if (N%2 == 1) {
    ans = "No";
  }
  else {
    var temp = S.slice(0, N/2);
    if (temp + temp != S) {
      ans = "No";
    }
  }
  console.log(ans);
}

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