N = gets.chomp.to_i
word = gets.chomp.split("")
first_half = []
result = true

if N % 2 == 0
  (N/2).times do |e|
    first_half << word[e]
  end
  (N/2).times do |e|
    if word[N/2+e] != first_half[e]
      result = false
  	end
  end
else
  result = false
end

if result == true
  puts "Yes"
else
  puts "No"
end