n = list(input()) sum = 0 for s in n: if s.isdigit() != 0: sum += int(s) print(sum)