def number(S): total= 0 for x in S: if x.isdigit(): total += int(x) return total def main(): S= input() result= number(S) print(result) main()