L = input() sum=0 for c in L: if c is None: break if c.isdigit(): sum+=int(c) print(sum)