const main = input => {
    const inputs = input.trim().split("\n")
    const N = parseInt(inputs[0])
    const S = inputs[1]

    if (N % 2 !== 0) {
        console.log('No')
        return
    }

    if (S.substr(0, N / 2) === S.substr(N / 2)) {
        console.log('Yes')
    } else {
        console.log('No')
    }
}

// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"));
