n = gets.to_i
s = gets.to_s

case n.odd?
when true then
    puts "No"
else
    a = s.slice(0..n/2-1)
    t = s.slice(n/2..s.length)
    if a == t
        puts "Yes"
    else
        puts "No"
    end
end

