s = 0 for i in input(): if 49<= ord(i)<=57: s += int(i) print(s)