#include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string S; cin >> S; int N = S.size(), C = 0; for (int i = 0; i < N / 2; i++) { if (S[i] != S[N - 1 - i]) C++; } cout << C << '\n'; }