open System
let R T = stdin.ReadLine()|> T
let RS T = stdin.ReadLine().Split()|>Array.map T
let Mod = (1e9|>int64)+7L
[<EntryPoint>]
let main argv =
    let N = R int
    let S = R string
    if S.[0..(S.Length/2 - 1)] = S.[S.Length/2..(S.Length - 1)] then "Yes" else "No"
    |>stdout.WriteLine
    0
