function Main(input) {
  var line = input.split('\n')
  var n = line[0]
  var s = line[1]
  if(n%2==1) {
    console.log('No')
    return
  }
  if(s.slice(0,n/2) == s.slice(n/2)) {
    console.log('Yes')
    return
  }
  console.log('No')
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
