puts (gets.count('0')-8).abs