"use strict"

const arg_str = require('fs').readFileSync('/dev/stdin', 'UTF-8')
const args = arg_str.split('\n')
const N = +args[0]
const S = args[1]

if(N < 2){
    console.log('No')
    return
}

if(S.substr(0, N/2) == S.substr(N/2)){
    console.log('Yes')
}else{
    console.log('No')
}
