fun main (args:Array<String>){
    val sLen = readLine()!!.toInt()
    var sStr = readLine()!!
    if(sLen % 2 != 0){
        print("No")
        return
    }
    val strSec = sStr.takeLast(sLen / 2)
    if(strSec + strSec == sStr){
        print("Yes")
    }
    else print("No")
}