#include<bits/stdc++.h>
#define int long long
using namespace std;
constexpr int mod=998244353;
signed main(){
    int n;
    string s;
    cin>>n>>s;
    cout<<(s.substr(0,n/2)==s.substr(n/2,n/2)&&n%2==0?"Yes":"No")<<endl;
}
