fun main(args: Array<String>){
    var count = 0
    val r = readLine()!!.toInt()
    val s = readLine()!!.split("").filter { it != ""}
    var result = "No"
    if (r % 2 == 0) {
        if (s.size == r) {
            var a = 0
            for (i in a..r / 2 - 1) {
                if (s[i] != s[r / 2 + i]) {
                    count++
                }
            }
            if (count == 0) {
                println("Yes")
                return
            }
        }
    }
    println(result)
}