let n=Int(readLine()!)!
let s=readLine()!
let S=Array(s)
var k=1
if n%2==1{
  print("No")
}else{
  for i in 0...n/2-1{
    if S[i] != S[i+n/2]{
      k=1
    }
  }
  if k==1{
    print("No")
  }else{
    print("Yes")
  }
}
      