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