N = gets.to_i
S = gets.chomp

def repeat(s)
  length = s.length
  half_l = length/2
  ary = s.chars
  t1 = ary.first(half_l).join(" ")
  t2 = ary.last(half_l).join(" ")
  if t1 == t2
    puts "Yes"
  else
    puts "No"
  end
end

if N % 2 == 1
  puts "No"
else
  repeat(S)
end