fun main(args: Array<String>){
    var con = 0
    val S = readLine()!!
    val S_half = S.length /2
    for(i in 1..S_half){
        if (S[i-1] != S[S.length - i]){
            con++
        }
    }
    println(con)
}