import java.util.*;

fun main(args: Array<String>) {
   readLine()!!.toInt()
   var s= readLine()!!.toString()
   var slen = s.length
   var x = slen % 2
   if(x == 0){
   var slen2 = slen / 2
   var ssub = s.substring(0,slen2)
   var lastsub = s.substring(slen2,slen)
   if(ssub == lastsub){
      println("Yes")
   }else{println("No")}
   
   
   
   } else {
      println ("No")
   }





}