fun main(args: Array<String>) {
    val N = readLine()!!.toInt()
    val S = readLine()!!
    val T1 = S.take(S.length / 2)
    val T2 = S.takeLast(S.length - T1.length)
    println(if (T1 == T2) "Yes" else "No")
}