test = list(input()) result = 0 for i in range(len(test)) : if test[i].isdigit() == True : result = result + int(test[i]) print (result)