fun main(args: Array<String>) {
    val N = nextInt()
    val S = next()
    if (N % 2 == 0) {
        val T = S.substring(0 until N/2 )
        println(if (S == T + T) "Yes" else "No")
    } else {
        println("No")
    }
}
fun next() = readLine()!!
fun nextInt(delta: Int = 0) = Integer.parseInt(next()) + delta