fun main(args:Array<String>) {
    val len = readLine()!!.toInt()
    val s = readLine()!!
    val ans = if(getAns(s)) "Yes" else "No"
    println(ans)
}

fun getAns(s:String) : Boolean {
    if(s.length % 2 != 0) {
        return false
    }
    return s.substring(0 until s.length/2) == s.substring(s.length/2)
}


