function main(N, S) {
  if (N == 0) {
    console.log('No')
    return
  } else if (N%2==0) {
      var a = S.slice(0, N/2)
      var b = S.slice(N/2, N)
      if (a == b) {
        console.log('Yes')
        return
      }
  } else {
    console.log('No')
  }
}


main(require('fs').readFileSync('/dev/stdin', 'utf8'));