import java.util._

object Main {
  def main(args: Array[String]): Unit = {
    val scanner = new Scanner(System.in)
    val string = scanner.nextLine
    val revString = string.reverse
    if (string != revString) {
      println("No")
      return
    }

    val firstHalf = string.substring((string.length - 1) / 2 + 1)
    if (firstHalf != firstHalf.reverse) {
      println("No")
      return
    }

    val secondHalf = string.substring((string.length - 1) / 2 + 1, string.length)
    if (secondHalf != secondHalf.reverse) {
      println("No")
      return
    }

    println("Yes")
  }
}
