let n=Int(readLine()!)!
let s=Array(readLine()!.characters)

var ret = "Yes"
if( n % 2 == 1 ) {
  ret = "No"
} else {
  for(var i=0;i<n/2;i++) {
	if(s[i] != s[i+n/2]) {
		ret = "No"
	}
  }
}

print(ret)