"use strict";
const Main = (input) =>{
   let xs = input.trim().split('\n');
   let T1= xs[1].trim().split(' ');
   
   let ans =T1[0].substring(xs[0]/2);
   let ans2 =T1[0].substring(0,xs[0]/2);
 
   if(ans==ans2&&xs[0]%2==0){
   console.log('Yes');
   }else{
   console.log('No');
   }
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));