fun main(args: Array<String>) {
    var n = readLine()!!.toInt()
    var s = readLine()
    val str1 = s!!.substring(0, n / 2)
    val str2 = s.substring(n / 2, n)
    if (str1 == str2) {
        println("Yes")
    } else {
        println("No")
    }
}