fun main(args: Array<String>) {
	val n = (readLine() ?: return).toInt()
	val s = (readLine() ?: return)
	val s1 = s.substring(0, n / 2)
	val s2 = s.substring(n / 2)
	if (s1 == s2) println("Yes")
	else println("No")
}