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