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