const input = require("fs").readFileSync("/dev/stdin", "utf8")

const lines = input.split('\n')
const S = lines[0]

const plnd = str => {
    const center = Math.floor(str.length / 2)
    for (let i = 0; i < center; i++) {
        if (str[i] !== str[str.length - i - 1]) {
            return false
        }
    }
    return true
}

const center = Math.floor(S.length / 2)
console.log(plnd(S) && plnd(S.substring(0, center)) ? 'Yes' : 'No')