S = input() N = len(S) ans = 0 for i in range(N//2): ans += S[i] != S[-(i+1)] print(ans)