fun stringSizeEval(n: Int): Boolean {
    return n % 2 == 0
}

fun stringJudgment(s_1: String, s_2: String): String {
    return if(s_1 == s_2){
        "Yes"
    }else{
        "No"
    }
}

fun stringHalf(s: String): Pair<String, String> {
    val s_1: String = s.substring(0, s.length/2)
    val s_2: String = s.substring(s.length/2)
    return Pair(s_1, s_2)
}

fun main(args: Array<String>){
    if (stringSizeEval(readLine()!!.toInt())){
        val s: String = readLine()!!
        val spair = stringHalf(s)
        val ans = stringJudgment(spair.first, spair.second)
        println(ans)
    }else{
        println("No")
    }
}