#include<bits/stdc++.h>
using namespace std;
int main()
{
    int k;
    cin>>k;
    string a,b;
    cin>>a;
    b=a.substr(0,k/2);
    if(b+b==a)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
}
