function main(arg) {
	arg = arg.trim().split('\n');
  	var n = Number(arg[0]),  
        s = arg[1],
        c = Math.round(n/2);
  var out = s.substr(0, c),
      out = out+out === s ? 'Yes': 'No'
  console.log(out)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));