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