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