s = gets.chomp.split("")
s_reverse = s.reverse
result = 0
cnt = 0



while s.length > cnt
  if s_reverse[cnt] != s[cnt]
    s[cnt] = s_reverse[cnt]
    s_reverse = s.reverse
    result += 1
  end
  cnt += 1
end

puts result