import scala.io.StdIn

object Main extends App {
  val n = StdIn.readLine().toInt
  val s: String   = StdIn.readLine()

  if (s.slice(0, n / 2) == s.slice(n / 2, n)) print("Yes") else print("No")

}
  

