const input = require('fs') .readFileSync('/dev/stdin', 'utf-8').trim(); const mid = input.length / 2; if (input.slice(0, mid) === input.slice(mid)) console.log('YES'); else console.log('NO');