"use strict";function Main(t){const e=t=>{const e=t.length;for(let n=0;n<(e-1)/2;n++){if(t[n]!=t[e-1-n])return!1}return!0},n=(t=t.split("")).length;console.log(e(t)&&e(t.slice(0,(n-1)/2))&&e(t.slice((n+3)/2-1))?"Yes":"No")} Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());