#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  string S;
  cin >> N >> S;
  if(S.length() % 2 == 0 && S.substr(0, N/2) == S.substr(N/2, N/2)) cout << "Yes" << endl;
  else cout << "No" << endl; 
}