s = input() ans = sum(c != d for c, d in zip(s, s[::-1])) // 2 print(ans)