object Main extends App {
  val s = scala.io.StdIn.readLine()
  val sReverse = s.reverse
  var result = 0
  s.zipWithIndex.foreach(c =>
    if(sReverse(c._2) != c._1) {
      result += 1
    }
  )
  println(result / 2)
}