fun judgeKaibun(s: String): Int {
    val end: Int = s.length
    for(i in 0..end/2) {
        if(s[i] != s[end - i - 1]) {
            println("No")
            return -1
        }
    }
    return 0
}
fun main(args: Array<String>) {
    val s: String = readLine()!!
    val n: Int = s.length
    if(judgeKaibun(s.substring(0, n)) !=  0) return
    if(judgeKaibun(s.substring(0, (n - 1) / 2)) !=  0) return
    if(judgeKaibun(s.substring((n + 3) / 2 - 1, n)) !=  0) return
    println("Yes")
}