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