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

int main(){
    int n;
    cin >> n;
    string s;
    cin >> s;
    if(s.substr(0, (int)n/2) == s.substr((int)n/2)) cout << "Yes";
    else cout << "No";
    return 0;
}
