str = gets.chomp.split("").map(&:to_s)

left = 0
right = str.size-1
n = str.size/2
ans = 0

n.times do
    if str[left] == str[right]
    else
        ans += 1    
    end
    left += 1
    right -= 1
end

puts ans