S = input() a = 0 for v in S: if v.isdigit(): a += int(v) print(a)