'use strict';
function main(input) {
  const arr = input.trim().split('\n');
  const a = arr[1];
  const length = a.length;
  let isDouble = true;

  if (a.length % 2 !== 0) {
    isDouble = false;
  }

  for (let i = 0; i < length / 2; i ++) {
    if (a[i] !== a[length / 2 + i]) {
      isDouble = false;
    }
  }
  
  console.log(isDouble ? 'Yes' : 'No');
}

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