def main(argv)
  n = gets.chomp.to_i
  s = gets.chomp
  
  flag = false
  if (n % 2) == 0 then
    m = n / 2
    t = s[0...m]
    flag = (s == (t + t))
  end
  
  puts (flag ? 'Yes' : 'No')
end

if self.to_s == 'main' then
  main(ARGV)
end