"use strict";

function Main(input) {
  let lines = input.split('\n');
  let ans = ""
  if(lines[0]%2 == 1){
  	ans = "No";
  }
  let first = lines[1].slice(0 ,lines[0]/2);
  let second = lines[1].slice(lines[0]/2,lines[0]);
  if(first === second){
    ans = "Yes";
  }
  console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));