let input = require('fs').readFileSync('/dev/stdin', 'utf8'); const S = input.replace('\n', ''); console.log(S.length % 2 ? 'NO' : S.slice(0, S.length / 2) == S.slice(-S.length / 2) ? 'YES' : 'NO');