s=input() total=0 for i in range(len(s)): if s[i].isnumeric(): total += int(s[i]) print(total)