l = list(input()) s = 0 for i in l: if i.isdigit(): s = s + int(i) print(s)