[<EntryPointAttribute>]
let main _ =
    let len = System.Console.ReadLine() |> fun s -> System.Int32.Parse(s)
    let input = System.Console.ReadLine()
    if len % 2 = 0 then
        let at = len / 2 - 1
        if input.[0..at] = input.[at+1..len-1] then
            printfn "Yes"
        else
            printfn "No"
    else
        printfn "No"
    0