object Main extends App {
	val s = scala.io.StdIn.readLine.toList
	val t = s.reverse

	var ans = 0
	val size = s.size/2

	for(i <- 0 until size){
		if(s(i) != t(i)){
			ans += 1
		}
	}

	print(ans)

}