시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB335525.000%

문제

You just finished day one of your alchemy class! For your alchemy homework, you have been given a string of lowercase letters and wish to make it a palindrome. You're only a beginner at alchemy though, so your powers are limited. In a single operation, you may choose exactly two adjacent letters and change each of them into a different lowercase letter. The resulting characters may be the same as or different from one another, so long as they were both changed by the operation.

Formally, if the string before the operation is $s$ and you chose to change characters $s_i$ and $s_{i+1}$ to produce string $t$, then $s_i \neq t_i$ and $s_{i+1} \neq t_{i+1}$ must be true, but $t_i = t_{i+1}$ is permitted.

Compute the minimum number of operations needed to make the string a palindrome.

입력

The single line of input contains a string of $n$ $(2 \le n \le 100)$ lowercase letters, the string you are converting into a palindrome.

출력

Output a single integer, which is the minimum number of operations needed to make the string a palindrome.

예제 입력 1

ioi

예제 출력 1

0

예제 입력 2

noi

예제 출력 2

1

예제 입력 3

ctsc

예제 출력 3

1

예제 입력 4

fool

예제 출력 4

2

예제 입력 5

vetted

예제 출력 5

2