line = gets
arr1 = line.split("")
ans = 0
arr2 = []

len = arr1.length
num = len / 2

num.times do |i|
	arr2 << arr1[-i-1]
end

num.times do |i|
  	if arr1[i] != arr2[i]
    ans += 1
    end
end

p ans