fun main(a:Array<String>){
    var n = readLine()!!.toInt()
    var s = readLine()!!
    var b = true

    for (i in 0 until n/2){
        if (s[i] != s[n/2+i]) b = false
    }
    if (n % 2 == 1) b = false
    println(if (b) "Yes" else "No")
}