#include <stdio.h>
#include <iostream>
using namespace std;

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