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