print(sum(int(i) for i in input() if i <= "9"))