#include <iostream>
#include <string>
using namespace std;
int main()
{
 int n;
 string s;
 cin >> n;
 cin >> s;
 if(n%2==0 && s.substr(0,(n/2)).compare(s.substr(n/2))==0)
 cout << "Yes";
 else
 cout << "No";
 return 0;
}