#include <bits/stdc++.h>
#define f first
#define s second
#define mp make_pair
#define pb push_back
#define all(x) x.begin(),x.end()
using namespace std;

const int N = 1e5;
const int INF = 1e9;
typedef long long int ll;
typedef pair<int,int> ii;

string a,b,total;
int n;

int main()
{
	ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);

	cin>>n;
	cin>>total;

	for(int i=0;i<n/2;++i)
		a+=total[i];

	for(int i=n/2;i<n;++i)
		b+=total[i];
	if(a == b)
		cout<<"Yes\n";
	else
		cout<<"No\n";

}