object Main extends App {
  var input = readLine
  val N = input.length()
  val lese = input.take((N-1) / 2)
  val rise = input.takeRight((N-1) / 2)
  
  //println(s"lese = $lese, rise = $rise")
  
  if( lese == lese.reverse && rise == rise.reverse) {
    println("Yes")
  }else {
    println("No")
  }
  
}