function Main(input) {
	input = input.split('\n')
  	var n = input[0]
    var s = input[1]
    if(n % 2 === 1) {
      console.log('No')
    } else {
        var flag = true
    	var l = 0
        var r = n / 2
        while(r < n) {
        	if(s[l] !== s[r]) {
            	console.log("No")
              	flag = false
              	break
            }
          l++
          r++
        }
        if(flag) {
          console.log("Yes")
        }
    }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));