@staticmethod
def c():
    s = sys.stdin.readline().rstrip()
    res = sum(((not ('0' in f)) for f in s.split('+')))
    print(res)
@staticmethod
def c():
    s = sys.stdin.readline().rstrip()
    res = sum(((not ('0' in f)) for f in s.split('+')))
    print(res)