#!/usr/bin/env node

"use strict";

let main = (input) => {
    let inputList = input.split('\n');
    let n = inputList[0];
    if(n%2==1) return "No";

    let str = inputList[1];
    let nh = Number.parseInt(n/2);
    return str.substring(0,nh)==str.substring(nh) ? "Yes" : "No";
}

console.log(main(require("fs").readFileSync("/dev/stdin", "utf-8")));