let  () =
    let main () =
        let n = int_of_string (read_line ()) in
        let s = read_line () in
        let f = n mod 2 == 0 && (
            let m = n / 2 in
            let rec loop i =
                if i < 0 then true else
                    if s.[i] <> s.[i+ m] then false else
                        loop (i - 1)
            in
            loop (m - 1)
        )
        in
        print_endline (if f then "Yes" else "No")
    in
    main ()