fun main (args:Array<String>){
    val str = readLine()!!
    val strLen = str.length
    val strRev = str.reversed()
    var count = 0
    for(i in 0..strLen/2 - 1){
        if(str[i] != strRev[i]) count++
    }
    print(count)
}