S = [int(n) for n in input() if n.isdigit() == True] print(sum(S))