fun main(args : Array<String>) {
    val N = readLine()?.toInt() ?: return
    val S = readLine() ?: return
    val subString1 = S.substring(0, N / 2)
    val subString2 = S.substring(N / 2, N)

    if (subString1 == subString2) {
        print("Yes")
    } else {
        print("No")
    }
}