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


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