fun main(args: Array<String>) {
    val str = readLine()!!

    val size = str.length
        var answer = 0
        for(i in 0 until size/2){
            if(str[i] != str[size-1-i]) {
                answer++
            }
        }
        println(answer)
}