import java.util.Scanner


import scala.io.StdIn._

object Main extends App {

  val s = readLine()


  def solve() = {
    val n = s.length
    val c2 = s.take((n-1)/2)
    val c3 = s.drop((n+3)/2 -1)
    if(f(s) && f(c2) && f(c3)) "Yes" else "No"
  }

  def f(c: String): Boolean = c == c.reverse

  println(solve())

}

