~/algor $ cat contests/round-6/C
C. Make it a palindrome
Problem C
ICPC rules
1000 ms
64 MB
A string of lowercase Latin letters is given. In one operation you may replace any one letter of the string with any other letter. What is the smallest number of operations needed to turn into a palindrome (a string that reads the same from left to right and from right to left)?
Input
One line contains the string .
Output
One integer — the smallest number of operations.
Note
consists of lowercase Latin letters (a–z) only
Examples
Input #1
abcdba
Output #1
1
Input #2
racecar
Output #2
0