input = require('fs').readFileSync('/dev/stdin', 'utf8')
lines = input.split('\n')
N = lines.shift()
S = lines.shift()
if (S.length % 2 == 0 && S.slice(0, S.length / 2) == S.slice(S.length / 2)) {
    console.log('Yes')
} else {
    console.log('No')
}
