moji_S = input().rstrip() out_sum = 0 for ch in moji_S: if ch in '0123456789': out_sum += int(ch) print(out_sum)