#include<bits/stdc++.h>
using namespace std;
int n;
string s;
int main(){
	cin>>n>>s;
	if(n%2!=0) {cout<<"No";return 0;}
	for(int i=0,j=n/2;i<n/2,j<n;i++,j++)
	    if(s[i]!=s[j]) {cout<<"No";return 0;}
	cout<<"Yes";
	return 0;
}