object Main extends App {
    val n = io.StdIn.readLine.toInt
    val s = io.StdIn.readLine
    if(n % 2 == 1) println("No") else if(s.take(n/2) == s.takeRight(n/2)) println("Yes") else println("No")
}