import re S = input() S_num = re.findall('[0-9]',S) sum = 0 for i in range (len(S_num)): sum += int(S_num[i]) print(sum)