S = input() N = 0 for c in S: if c.isdigit(): N = N + ord(c) -ord('0') print(N)