S = input() c = 0 i = 0 while i <= len(S) - 1 - i: if S[i] != S[len(S) - 1 - i]: c += 1 i += 1 print(c)