S = input() sum = 0 for ch in S: if ch.isdigit(): sum += int(ch) print(sum)