#include <iostream>
#include <string>
using namespace std;

int main()
{
    int n;
    string word,word1,word2;
    cin >> n;
    getline(cin, word);
    int j=word.length();
    j++;
    word1 = word.substr(0,(j)/2);
    word2 = word.substr((j)/2, j/2);
    if((word1==word2) && (j%2==0)){
        cout << "Yes";
    }

    else{
        cout << "No";
    }

    return 0;
}
