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