#include<bits/stdc++.h>
using namespace std;
int main(){
	int r;
	string s;
	cin >> r;
	cin >> s;
	if(r%2!=0)
	{
		printf("No");
	}else{
		if(s.substr(0,r/2)==(s.substr(r/2,r))){
			printf("Yes");
		}else printf("No");
	}
} 