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