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