function main(input) {
    const args = input.split('\n');
    const N = parseInt(args[0], 10),
          S = args[1];
    var str = S.substr(0, N / 2);
    if (str + str == S) {
      console.log("Yes");
    } else {
      console.log("No");
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));