words = list(map(str, input())) s = 0 for w in words: if w.isdecimal() == True: s += int(w) print(s)