var lineList = require('fs').readFileSync('/dev/stdin','utf8').trim().split('\n')
var n = parseInt(lineList[0])
var s = lineList[1]

var answer = 'No'

if(s.slice(0, n/2) === s.slice(n/2, s.length)) {
  answer = 'Yes'
}

console.log(answer)
