    fun main(args: Array<String>) {
        val s = readLine()!!.toString()

        val a = s.substring(0, (s.length - 1) / 2)
        val b = s.substring(((s.length + 3) / 2) - 1, s.length)

        if (s == s.reversed() && a == a.reversed() && b == b.reversed()) {
            println("Yes")
            return
        }
        println("No")
    }
