#include using namespace std; using ll = long long; using vll = vector; using vvl = vector; using pll = pair; #define rep(i,N) for(ll i=0;i=0; --i) #define all(v) (v).begin(), (v).end() template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string S;cin >> S; ll N=S.size(); ll ans=0; rep(i,N/2){ if(S[i]!=S[N-i-1])ans++; } cout << ans << endl; return 0; }