import scala.io.StdIn._

object Main extends App {


  val s = readLine()

  def solve() = {
    val r = s.reverse
    (0 until s.length).foldLeft(0) { (acc, i) =>
      if(s(i) == r(i)) acc else acc+1
    }
  }

  println(solve())

}

