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

int main() {
	int n , f = 0;
	string s;
	cin >> n;
	cin >> s;
	if(n % 2 != 0 ){
		cout << "No" ;
		exit(0);
	}
	else{
		int j = n / 2;
		for(int i = 0 ; i < n / 2 ; i++){
			if(s[i] != s[j]){
				break;
			}
			else if(s[i] == s[j] && j == (n-1)){
				f = 1;
				break;
			}
			else{
				j++;
			}
		}
		
		if(f == 0){
			cout << "No" ;
		}
		else{
			cout << "Yes";
		}
	}
	return 0;
}