import java.util.Scanner
import java.io.PrintWriter

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val pw = new PrintWriter(System.out)

    val n = sc.nextInt()
    val s = sc.next()
    if (n % 2 == 1) {
      pw.println("No")
    } else {
      if (s.substring(0, n / 2) == s.substring(n / 2)) {
        pw.println("Yes")
      } else {
        pw.println("No")
      }
    }

    pw.flush()
  }
}