import java.util.Scanner

object Main extends App{

  val sc = new Scanner(System.in)

  val s = sc.next

  val front = s.substring(0, s.length/2)
  val back  = s.substring(s.length/2).reverse

  val res = (front zip back).count{t => t._1 != t._2}

  println(res)


}