S=input() sum = 0 for c in S: if c.isdecimal() == True: sum += int(c) print(sum)