fun main(args: Array<String>) {
    val s = readLine()!!
    var count = 0
    s.zip(s.reversed()).forEach { ss ->
        count += if (ss.first != ss.second) 1 else 0
    }
    println((count + 1) / 2)
}