N = gets.to_i

d = gets.chomp.split('')

result = 'No'

i = 0

s = N / 2


if N % 2 == 0
   	while i < s
	   	if d[i] == d[i+s]
	   		i += 1
	   		result = 'Yes'
	   	else
	   		reselt = 'No'
	   		break
	   	end
    end

  else

end

puts result