object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N = sc.nextInt()
  val S = sc.next()
  println(if (N % 2 == 0 && {
    val (l, r) = S.splitAt(N / 2)
    l == r
  }) "Yes" else "No")
}
