import std; void main() { const s = readln.chomp; const n = s.length; writeln(iota(0, n / 2).count!(i => s[i] != s[n - 1 - i])); }