import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val s = sc.nextLine

  def judge(s: String) = {
    val n = s.length
    val splitPos = n / 2

    val a = s.substring(0, splitPos)
    val b = s.substring(splitPos + (if (n % 2 == 0) 0 else 1)).reverse

    a == b
  }

  val n = s.length
  println(
    if (judge(s) && judge(s.substring(0, (n - 1) / 2)) && judge(s.substring((n + 3) / 2 - 1))) "Yes"
    else "No"
  )
}
