print(sum([int(n) if n.isdigit() else 0 for n in input()]))