import Data.List (splitAt)
main = getLine >>= print.palindromephilia

palindromephilia :: String -> Int
palindromephilia str = sum $ zipWith f ls rs'
  where len = length str
        (ls, rs) = splitAt (len `div` 2) str
        rs' = reverse rs
        f a b = if a == b then 0 else 1