fun main(args:Array<String>){
    val n = readLine()!!.toInt()
    val s = readLine()!!
    if(n % 2 == 0){
        var ok = true
        for(i in 0 until n / 2){
            if(s[i] != s[i + n / 2]) ok = false
        }
        println(if(ok) "Yes" else "No")
    }
    else{
        println("No")
    }
}
