Public Class Program
  Shared Sub Main()
    Dim n As Integer = Integer.Parse(Console.ReadLine())
    Dim s As String = Console.ReadLine()
    Dim ans As String = "No"
    If n Mod 2 = 0 Then
      Dim t As String = s.Substring(0, n / 2)
      If s = t & t Then ans = "Yes"
    End If
    Console.WriteLine(ans)
  End Sub
End Class