S = gets.chomp
length = S.length
count = 0
array = []
S.each_char do |s|
  array << s
end

for index in 0..((length -1) / 2)
  count += 1 if array[index] != array[length - index - 1]
end

print("#{count}")