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