s = input() print(sum(x=='0' for x in s))