s = list(input()) l = len(s) counter = 0 for i in range(l): if s[i].isdigit : counter += s[i] print(counter)