// Main
object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val len = sc.nextInt
    val s = sc.next
    if (len % 2 != 0) {
      println("No")
      System.exit(0)
    }
    val s1 = s.substring(0,len/2)
    val s2 = s.substring(len/2, len)
    if (s1 == s2) {
      println("Yes")
    } else {
      println("No")
    }
  }
}
