"use strict";

const main = arg => {
  const n = parseInt(arg.split("\n")[0], 10)
  if (n % 2 !== 0) {
  	console.log("No")
    return
  }
  const s = arg.split("\n")[1]
  if (s.slice(0, n/2) == s.slice(n/2)) {
  	console.log("Yes")
  } else {
  	console.log("No")
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));