str = gets.chomp.chars
len = str.length

reversed = str.reverse[0...((len/2)+len%2)]
str = str[0...((len/2)+len%2)]

result = 0

str.zip(reversed).each do |s, t|
  result += 1 if s != t
end

puts result