s = input() print(s.count(0))