#include<bits/stdc++.h>
using namespace std;

int main(){
    string s;
    cin>>s;
    int count = 0;
    int n = s.size();
    for (int i = 0; i < n/2; i++){
        if (s[i] != s[n-i-1]) count++;
    }
    cout<<count;
}
