def abc_145_b
    n = gets.chomp.to_i
    s = gets.chomp
    if n % 2 == 1
        puts 'No'
        exit
    end

    t1 = s[0..n/2-1]
    t2 = s[n/2..-1]

    puts t1 == t2 ? 'Yes' : 'No'
end

abc_145_b