S = input() print(sum(int(c) for c in S if c.isdigit()))