n = gets.to_i
s = gets.chomp!
x = 0

if s.size % 2 == 1
  puts "No"
else
  for i in 0..((n/2) -1)
    if s[i] == s[i+(n/2)]
      x += 0
    else
      x += 1
    end
  end
  if x == 0
    puts "Yes"
  else
    puts "No"
  end
end