#!/usr/local/gnu/bin/bash
function isP(){
    s=$1
    r=`echo $s | rev`
    [ $s == $r ] && echo 1 || echo 0
}

read s
n=${#s}
((`isP $s`&&`isP ${s:0:(n-1)/2}`&&`isP ${s:(n+1)/2}`)) && echo Yes || echo No
