object Main extends App{
    // Your code here!
    
    var s = io.StdIn.readLine
    var count = 0;
    for (i <- 0 until s.size / 2) {
        if (s(i) != s(s.size - i - 1)) {
            count = count + 1
        }
    }

    println(count)
}