def main()
  string=gets
  half_length=(string.length/2).floor
  count=half_length
  for i in 0..(half_length-1)
    if string[i] == string[-(i+1)]
      count-=1
    else
      count
    end
  end
  puts count
end
main()