import scala.io.StdIn._


object abc147_b extends App {

  var ans = 0;
  val s = readLine
  val len = s.length
  for (i <- 0 until len / 2 ) {
    if(s(i) != s(len-i-1)) {
        ans += 1
    }
  }
  println(ans)
}