let n = stdin.ReadLine() |> int
let s = stdin.ReadLine()

if n % 2 = 1 then "No" |> stdout.WriteLine
 else
 let k = (n / 2)
 let rec f acc flag =
  match acc with
  |0 -> flag
  |_ -> if s.[acc] = s.[k + acc] then f (acc - 1) flag else f (acc - 1) "false"
 let fla = f (k - 1) "true"
 if fla = "true" then "Yes" |> stdout.WriteLine else "No" |> stdout.WriteLine