[<AutoOpen>]
module Program

open System

let read f = stdin.ReadLine() |> f
let reada f = stdin.ReadLine().Split() |> Array.map f
let reads f = stdin.ReadLine().Split() |> Array.toList |> List.map f

[<EntryPoint>]
let main _ =
    let N = read int
    let S = (read string).ToCharArray()

    if N % 2 <> 0 then
        printfn "No"
    else
        let n = N / 2
        let a, b = Array.splitAt n S
        if a = b then
            printfn "Yes"
        else
            printfn "No"
    0