N = gets.to_i
S = gets.chomp

if N % 2 == 1
  p 'No'
else
  first = S[0, N / 2]
  second = S[N / 2, S.length]

  result = 'Yes'
  first.each_char.with_index do |char, i|
    if first[i] != second[i]
      result = 'No'
      break
    end
  end

  p result
end