function Main(input) {
  input = input.trim()
  input = input.split("\n");
  var N = input[0]
  var S = input[1].split("");
  var p=0;
for(var i=0;i<N/2;i++){
  if(S[i]!==S[i+N/2]){
    p++
  }
}
if(p==0){
  console.log("Yes")
}else{
  console.log("No")
}
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));