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