let s = stdin.ReadLine().ToCharArray()

let mid = int (ceil (float s.Length / 2.0)) - 1

s.[0..mid] |> Array.zip (s |> Array.rev |> fun x -> x.[0..mid])
|>Array.sumBy (fun (a,b) -> if a<>b then 1 else 0 )
|>stdout.WriteLine