function main(input){
    num = input.length;
    out='Yes';
    cut = Math.ceil(num/2);
    cat = Math.ceil(cut/2);
    if(num<7){
        out='No';
    }
    else if(num>=7){
        for(i=0;i<cut-1-1;i++){
            if(input[i]!=input[num-1-i]){
                out='No';
                break;
            }
        }
    }
    if(out=='Yes'){
        for(i=0;i<cat-2;i++){
            if(input[i]!=input[cut-1-1-i]){
                out='No';
              break;
            }
            if(input[num-1-i]!=input[cut-1+1+i]){
                out='No';
              break;
            }
        }
    }
    console.log(out);

}

main(require("fs").readFileSync("/dev/stdin", "utf8"));