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


