s = 0 S = list(input().strip()) for c in S: if c.isdigit(): s += int(c) print(s)