/*assuming c->b is one operation and b->a as second operation and assuming ahaeder files stdio.h ,string.h and stdlib.h (for abs() function)
int main()
{
char str[80];
int count=0,i,l,j;
gets(str);
l=strlen(str);
for(i=0,j=l-1;i<j;i++,j--)
{
count+=abs(str[i]-str[j]);
}
printf("%d",count);
return 0;
}