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