#include <iostream>
using namespace std;
int main () {
	int n;
	string s,ans="Yes";
	cin>>n>>s;
	for (int i=0;i<n/2;i++) {
		if (s[i]!=s[i+n/2]) {
			ans="No";
			break;
		}
	}
	if (n%2!=0) ans="No";
	cout<<ans;
}