S = input() print(sum(S[i] != S[len(S)-1-i] for i in range(len(S)//2)))