#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>

using namespace std;

typedef long long ll;
typedef std::pair<int, int> pii;
typedef unsigned long ul;

int main() {
    int N {};
    string s {};
    cin >> N;
    cin >> s;
    if (N % 2 == 1) {
        cout << "No" << '\n';
    } else {
        bool flag = true;
        int k = N / 2;
        for (int i = 0; i < k; ++i) {
            if (s[i] != s[k + i]) {
                flag = false;
            }
        }

        string ans = flag ? "Yes" : "No";
        cout << ans << '\n';
    }
    return 0;
}