N = gets.chomp.to_i
S = gets.chomp.split('')
ans = 'No'
first = nil
last = nil
if S.size % 2 == 0
  first = S.slice(0..(S.size/2 - 1))
  last = S.slice(S.size/2..-1)
  ans = 'Yes' if first === last
end
puts ans