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