function Main(input) {
	input = input.split('\n')
  	const n = input[0]
    const s = input[1]
    let flag = true
    if(n % 2 === 1) {
      console.log('No')
    } else {
    	let l = 0
        let 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"));