S = input() n = len(S) res = 0 for i in range(n): if S[i] != S[~i]: res += 1 print(res // 2)