#include<iostream>
#include<string>
using namespace std;
int main(){
  string s;
  cin>>s;
  int ans=0,l;
  for(int i=0;i<s.size()/2;i++){
    if(s[i]!=s[s.size()-i-1]) ans++;
  }
  cout<<ans<<endl;
}