import scala.io.StdIn._

object Main extends App {


  val s = readLine()

  def solve() = {
    val len = s.length
    (0 until len/2).foldLeft(0) { (acc, i) =>
      if(s(i) == s(len-1-i)) acc else acc+1
    }
  }

  println(solve())

}

