S=input() p=[int(c) for c in S if '0'<=c<='9'] print(sum(p))