let () =
  let s = read_line () in
  let len = String.length s in
  let ans = ref 0 in
  for i = 0 to len/2-1 do
    if s.[i] != s.[len-i-1] then ans := !ans + 1 else ans := !ans
  done;
  print_int !ans