let scan_int () = Scanf.scanf " %d" (fun x -> x)
let scan_string () = Scanf.scanf " %s" (fun x -> x)

let rec judge s i h =
  if i = h then true
  else if s.[i] = s.[i+h] then judge s (i+1) h
  else false

let () =
  let n = scan_int() in
  let s = scan_string() in
  if n mod 2 = 0 && judge s 0 (n/2) then Printf.printf "Yes\n"
  else Printf.printf "No\n"