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

    println(count)
}
