s = input() cum = 0 for c in s: if c in '0123456789': cum += int(c) print(cum)