object Main {
  def main(args: Array[String]): Unit = {
    val N = Console.in.readLine().toInt
    val S = Console.in.readLine()
    if(N % 2 == 0) {
      val s1 = S.substring(0, N / 2)
      val s2 = S.substring(N / 2)
      print(if(s1 == s2) "Yes" else "No")
    } else {
      print("No")
    }
  }
}