#include using namespace std; using ll=long long; const int INF=1e9; /* Library: https://yukicoder.me/users/24530/ai_code */ int main() { cin.tie(nullptr),cout.tie(nullptr); ios::sync_with_stdio(false); string s; cin >> s; int p=s.size()/2; int kai=0; int x=0; while(p--){ if(s[x]!=s[s.size()-1-x]){ kai++; } x++; } cout << kai << endl; }