"use strict"
function Main(input) {
  input = input.trim().split('\n');
  const N = Number(input[0]);
  const S = input[1];

  if(N%2 !== 0){
    console.log('No');
    return;
  }

  const pre = S.slice(0, N/2);
  const suf = S.slice(N/2, N);
  if(pre !== suf){
    console.log('No');
    return;
  }

  console.log('Yes');
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));