require 'pp'

def gets; ARGF.gets; end

class Solver

  def initialize
  end

  def main
    n = gets.chomp.to_i
    s = gets.chomp

    if n.odd?
      puts "No"
      return
    end

    l = s[0, n/2]
    r = s[n/2..-1]

    # puts l
    # puts r

    if l == r
      puts "Yes"
    else
      puts "No"
    end
  end
end

if __FILE__ == $0
  Solver.new.main
end
