import java.util.Scanner

object Main extends App{
  val sc = new Scanner(System.in)

  val n = sc.nextInt
  val s = sc.next

  val res =
    if(s.substring(0,n/2) == s.substring(n/2)) "Yes"
    else "No"

  println(res)


}
